I am having great trouble with a plot I think should be very simple. I want to plot the following:
x=[0:1:100]; y=6-400/(100+x.^2);
My first stab at google lead me to the x. trick, but strangely it seems to fail if I have a quadratic expression in the denominator. I assume this is a syntax problem. If I try to enter the second line above, I get the following error:
??? Error using ==> mldivide Matrix dimensions must agree.
I understand that x is a matrix, but how come it works when this term is in the numerator instead?
I appreciate any help you can give on this. Thanks for reading.
Best Answer