MATLAB: Do I need symbolic math toolbox to graph a function such as f(x)=ln(x) or f(x, y)=y^2/x

beginnergraphMATLABSymbolic Math Toolbox

I just bought matlab and while processing data works well I cannot find how to graph functions from R to R for instance. Is it the case that I need to buy symbolic math toolbox in order to be able to do these graphings?

Best Answer

There is no need for the symbolic toolbox for such simple functions. Try this:
>> X = 0:0.1:3;
>> Y = log(X);
>> plot(X,Y)
Or your second example:
>> [X,Y] = meshgrid(0:0.1:2,1:5);
>> Z = Y.^2./X;
>> surf(X,Y,Z)