What is the problem in this program. I am learning Matlab (self teaching). I have no clue of any error in this program but this program won’t compile. Also suggest me some books for learning Matlab from very basics(I am using this for SIGNALS AND SYSTEM subject).
x=0:1/10:2*pi;
p=sin(8*x);
t=exp(-x)*p; //here is the error
figure(1)
plot(x,t)
figure(2)
stem(x,t)
In MATLAB,
*is matrix multiplication. For array (element-wise) multiplication, use.*:See the documentation.