Hi everyone, I have two plot and I want to make the single envelope of the two plot. I think convolution do this but I don't know how I can use convolution. I have also attached my plot. Kindly provide me the idea about this Thanks in advance Sanjay
X1 = asind(index_medium*sind(G1_plot_theta));
plot(X1+G1_recording(1),G1_efficiency*100,'b')
hold on
X2 = asind(index_medium*sind(G2_plot_theta));
plot(X2+G2_recording(1),G2_efficiency*100,'r')

2 件のコメント

Stephen23
Stephen23 2018 年 10 月 9 日
編集済み: Stephen23 2018 年 10 月 9 日
" I have two plot and I want to make the single envelope of the two plot. I think convolution do this but I don't know how I can use convolution"
Convolution is not the same as envelope, so it is not clear what you want to achieve. If you want an envelope, why not ask about that?
Adam
Adam 2018 年 10 月 9 日
If you just want to do convolution (as you say in reponse to the answer below) then
doc conv
is a good place to start!

サインインしてコメントする。

回答 (1 件)

KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 10 月 9 日
編集済み: KALYAN ACHARJYA 2018 年 10 月 9 日

1 投票

Are you want to just add the two plots? If yes then Just add the two plots like y1+y2
plot(X2+G2_recording(1),(G1_efficiency+G2_efficiency)*100,'r')
Please Note: G1_efficiency & G2_efficiency must have same length

2 件のコメント

Sanjay Kumar Keshri
Sanjay Kumar Keshri 2018 年 10 月 9 日
Hi Kalyan.I do not want to add these graph. I just want to make a convolution of these two graphs expecting the peak will be at the same position on x and y-axis.
Sanjay Kumar Keshri
Sanjay Kumar Keshri 2018 年 10 月 12 日
Hi Kalyan, I want something like the green graph without changing the two peaks. Which function will so this..I was wondering that convolution will do that

サインインしてコメントする。

カテゴリ

製品

タグ

質問済み:

2018 年 10 月 9 日

コメント済み:

2018 年 10 月 12 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by