On Thursday, January 10, 2013 8:40:14 AM UTC+2, Roger Stafford wrote:
> "Mark L. J." wrote in message ...
>
> > ??? Error using ==> mtimes
>
> > Inner matrix dimensions must agree.
>
> > Error in ==> triscastdmeshgrid10012013b at 6
>
> > F=1.10471*X.^2*A+0.04811*B*(14 + A);
>
> - - - - - - - - -
>
> It's almost the same problem. You can't do matrix multiplication of two 100 x 1 vectors and that is what "*" without the dot calls for. Use ".*" instead for multiplying element by element.
>
>
>
> Roger Stafford
thanks so much again...
I now have a blank graph(no specific output) been generated and with the error as shown below.
I really want to plot this function F with at least the 3 variables while I keep the other fourth variable constant. thanks
................................................................
??? CData must be an M-by-N matrix or M-by-N-by-3 array
Error in ==> graph3d.surfaceplot.surfaceplot>localConstructor at 136
h = graph3d.surfaceplot(argin{:});
Error in ==> graph3d.surfaceplot.surfaceplot at 7
h = localConstructor(varargin{:});
Error in ==> mesh at 162
hh = graph3d.surfaceplot(x,y,z,'FaceColor',fc,'EdgeColor','flat', ...
Error in ==> triscastdmeshgrid10012013b at 28
mesh(qX,qA,qB);
.............................................................