MATLAB: Matlab code for taking very less sample

MATLAB

I have to take a few samples from a sinusodial signal.I have generated sinusodial signal using sin. But i am unable to write the matlab code to take very less samples from that sinusodial signal.please help…………

Best Answer

You might find the getting started guide very useful, second and third chapters are a good investment.
% Sample data
x = 1:100;
y = sin(x);
% Take every 10
y(1:10:100)
Related Question