% compute the function y=exp (x2) * cos (20x) in the range x= -2:0.1:2.
clc close allx = -2: 0.1: 2;y = cos(20*x). * exp(x.^2);plot(x,y)
MATLAB: Invalid use of operator. “*”
learning
learning
% compute the function y=exp (x2) * cos (20x) in the range x= -2:0.1:2.
clc close allx = -2: 0.1: 2;y = cos(20*x). * exp(x.^2);plot(x,y)
Best Answer