when i type this equation in MatLab, I get the following error:
x=linspace(0,8*pi,1000);
y=x*sin(x);
??? Error using ==> mtimes
Inner matrix dimensions must agree.
Thank you very much!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your question has nothing to do with plotting.
But you want element-wise multiplication. e.g., .* instead of *
x=linspace(0,8*pi,1000);
y=x.*sin(x);
http://stuff.mit.edu/afs/sipb/project/www/matlab/imatlab/node10.html