MATLAB: How to convert a waveform in 2D matrix

digital image processingimage analysisimage processingMATLABmatricesoptimizationsignal processing

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)

Best Answer

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