Prev: rotating an image
Next: Advanced Stop ODEs
From: Charlie Vlieland-Boddy on 22 Jul 2010 12:24 i couldnt find the syntax on MATLAB help. Im not sure what im running. Its MatlabR2009b 7.9.0.529 64-bit (MAC) I tried allvalues(Z,L) but got ??? Undefined function or method 'allvalues' for input arguments of type 'sym'
From: Walter Roberson on 22 Jul 2010 12:53
Charlie Vlieland-Boddy wrote: > i couldnt find the syntax on MATLAB help. > > Im not sure what im running. > > Its MatlabR2009b > > 7.9.0.529 > > 64-bit (MAC) http://www.mathworks.com/access/helpdesk/help/toolbox/mupad/stdlib/RootOf.html > I tried > allvalues(Z,L) > > but got > > ??? Undefined function or method 'allvalues' for input arguments of type > 'sym' I do not see a MuPad equivalent of allvalues() when I look around. *Possibly* resubmitting the object to solve() but adding a MaxDegree option would attempt to resolve polynomials of degree 3 and 4 (in my earlier posting I indicated that degree 3 would be automatically resolved; I see from the Matlab solve() documentation that degree 3 would normally be left in terms of RootOf()). In general, asking for polynomials of degree 3 and 4 to be resolved symbolically would involve adding a MaxDegree option to Matlab's solve() call. It appears that in order to request numeric evaluation of expressions involving RootOf, one should use float() in Matlab. On the other hand, it appears that MuPad recommends that if you are going to be doing that and you do not need the symbolic forms for some purpose, that you call the numeric solver directly. http://www.mathworks.com/access/helpdesk/help/toolbox/mupad/stdlib/solve.html |