Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
ben
Posts:
32
Registered:
10/1/10
|
|
gradient error
Posted:
Jan 12, 2013 1:49 PM
|
|
Hi ,
I have a vector 'a':
a = [32 45 54]
When I use the gradient function as follows , I get no errors from Matlab:
>> gradient(a);
ans =
13 11 9
But I want the dF/dx and dF/dy components from the gradient , but I get the follwoinf error:
>> [Fx, Fy] = gradient(a); Error in ==> gradient at 49 [msg,f,ndim,loc,rflag] = parse_inputs(f,varargin);
??? Output argument "varargout{2}" (and maybe others) not assigned during call to "C:\Program Files\MATLAB\R2010a\toolbox\matlab\datafun\gradient.m>gradient".
Any help appreciated.
-ben
|
|
|
Date
|
Subject
|
Author
|
|
1/12/13
|
|
ben
|
|
1/12/13
|
|
dpb
|
|
1/12/13
|
|
ben
|
|
1/12/13
|
|
dpb
|
|
1/12/13
|
|
ben
|
|
1/12/13
|
|
dpb
|
|
|