Graphics Programs Reference
In-Depth Information
Error in ==> C: \ MATLAB SR11 \ toolbox \ symbolic \ @sym \ ezsurf.m
(makeinline)
On line 73 ==> vars = symfind(f);
Error in ==> C: \ MATLAB SR11 \ toolbox \ symbolic \ @sym \ ezsurf.m
On line 60 ==> F = makeinline(f);
since ezsurf intheStudentVersionisnotequippedtoacceptsymbolicinputs;
it requires string inputs instead. You can easily fix this by typing
>> ezsurf('sin(p)*cos(t)', 'sin(p)*sin(t)', 'cos(p)', ...
[0, pi, 0, 2*pi]); axis equal
or else by using char to convert symbolic expressions to strings.
Computer Won't Respond
MATLAB is caught in a very large calculation, or some other calamity has
occurred that has caused it to fail to respond. Perhaps you are using an array
that is too large for your computer memory to handle.
CAUSE:
SOLUTION: Abort the calculation with CTRL+C.
If overuse of computer memory is the problem, try to redo your calculation
using smaller arrays, for example, by using fewer grid points in a 3D plot,
or by breaking a large vectorized calculation into smaller pieces using a loop.
Clearing large arrays from your Workspace may help too.
EXAMPLE:
You'll know it when you see it!
The Most Common Mistakes
The most common mistakes are all accounted for in the causes of the problems
described earlier. But to help you prevent these mistakes, we compile them
here in a single list to which you can refer periodically. Doing so will help you
to establish “good MATLAB habits”. The most common mistakes are
forgetting to clear values,
improperly using built-in functions,
not paying attention to the order of precedence of arithmetic operations,
improperly using arithmetic symbols,
mismatching delimiters,
using the wrong delimiters,
Search WWH ::




Custom Search