Thilina's Blog

I might be wrong, but…

MATLAB plotting tools 1.0 – ‘plot’ command

Data visualization is a main requirement in Image and Audio signal processing, since it can be used to identify special features, intermediate results, process states as well as the correctness of the final results. Data plotting is one way of data visualization which used in very common by all MATLAB users. However the selection and handling of plot for the requirement is a critical factor since the whole representation of the data is depends on the tool we choose to visualize it. In this article (or maybe a set of articles) I am going to share my experience and suggestions on using MATLAB plotting tools.

plot Command

The command ‘plot’ is the most widely used data visualization tool which will create a 2D line plot on a MATLAB figure. Say you are having a data set called ‘y’ based on values ‘x’, you can simply visualize them using the plot command as follows.

x = 0:0.001:100; % x is the array of 0 to 100 with 0.001 intervals
y = sin(0.05*pi*x); % y is the sine value array of x

After this command plot will be drawn in a MATLAB figure as follows;


Continue reading


2013 February 1 Posted by | MATLAB | , , , | 4 Comments


%d bloggers like this: