# MATLAB Plot: Interactively Creating Plots in MATLAB

14 October, 2010
13 Comments

Comments

I see all of the tools for making a sophisticated program. Could matlab be used as a source code?

It is possible to do a scatter plot with the simple, general purpose “plot” command by specifying/setting “no line” (and just markers), but the “scatter” command provides additional arguments to let you specify the area and color of the markers (its more obvious when you call it as a function rather than when you use it interactively). Googling the command names + matlab will find the documentation.

Hey i have a general doubt regarding Matlab commands:’

what is the difference between a scatter plot command “scatter”

and normal plot command “plot”??

Why is video not suuported on iPhone???

K, i understand if you can’t do it.

its okay :]

You need to try this yourself. plot3 might be useful.

Hey i was wondering if you could help me out with this: Write a function that plots a whirlpool in the following fashion:

– theta is (2*height*intensity) evenly spaced points between 0 and height/2

– x and y are defined as circles, with the radius being the height and the angles being theta*intensity

– z is theta

– x, y,and z are plotted on the same graph as -x, -y, and -z. All

lines should be black

– the figure should be titled ‘Whirlpool!’ and should show a grid

Thanks! ðŸ™‚

Do you mean, you have a function f(x) e.g. exp(x) and you want to evaulate it at a number of points e.g. x=1,2,3,4,5? It would be:

>>x=[1 2 3 4 5];

>>plot(x,exp(x));

Labelling values, e.g. f(x), is more ticky. You have to create a cell array of string lables then use the text command to plot them:

>>text(x,exp(x),cellstr(num2str(exp(x)’)));

How can I plot points with given coordinates on a given function?

Also, is there a way to label them?

Thanks Great video

It was a Camtasia project, captured at 15fps, zoomed to 640×360, then published to a 1280×720, H.264, MOV file, 24fps, (best quality), resulting in 1667kbps data rate. Audio was 44.1kHz, Mono.

Can you tell us exactly how you encoded this video?