![]() So, for example, to use it to plot the constant function 5, you can write 5 as 5+0*x and plot that. Solve('x^2-5*x=6') Plotting a constant function with ezplotĮzplot requires a variable in a symbolic expression. Or you can give the solve command an equation enclosed in single quotes: The command solve(x^2-5*x=-6) gives the error messageĮrror: The expression to the left of the equals sign is not a valid targetĪnd solve(x^2-5*x+6=0) gives a similar error message. Suppose you want to solve the equation x^2-5*x=6. The solve command takes as its input a symbolic expression, not an equation and assumes that the expression is equal to 0. If MATLAB doesn't recognize the quadl command, make sure that you have typed it correctly. MATLAB (and most mathematical software) knows the natural logarithm as log(x). MATLAB (and most mathematical software) knows the exponential function as exp(x) so the number e in MATLAB is exp(1). The exponential function and the number e If you have a space or hyphen, when you publish to html MATLAB will give an error message when it tries to execute the first command and won't try to execute any later commands. Fixing a bad pagebreak in your html fileĭo not have a space or a hyphen in the names of your.A command for rotating a 3 dimensional plot. ![]() Preventing MATLAB from putting a new plot on top of an old one. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |