how to convert a waveform in 2D matrix?
2 ビュー (過去 30 日間)
古いコメントを表示
i want to generate triangular fringe pattern without using meshgrid function i have a code for triangular wave and i want to convert it into fringe pattern 2D matrix.
%triangular wave form
t=0:1/100:1;
f=5;
I3=asin(sin(2*pi*f*t));
plot(I3)
0 件のコメント
採用された回答
KSSV
2017 年 5 月 31 日
YOu can use repmat
%triangular wave form
t=0:1/100:1;
f=5;
I3=asin(sin(2*pi*f*t));
plot(I3)
N = 101 ;
iwant = repmat(I3,N,1) ;
pcolor(iwant)
shading interp
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!