Technical discussion about Matlab and issues related to Digital Signal Processing.
---------- Forwarded message ----------
From: Raja' S. Alomari <r...@gmail.com>
Date: Wed, Apr 23, 2008 at 1:13 PM
Subject: Re: [matlab] Plotting Error in Matlab??
To: "aaron. judy" <a...@yahoo.com>, m...@yahoogroups.com
Hi,
It did work with me and the title appears on the plot (enclosed). I am using
version 2007b..
Best regards,
Raja'
On Tue, Apr 22, 2008 at 3:54 PM, aaron.judy <a...@yahoo.com> wrote:
> I am plotting a very simple graph, but keep getting the error below?
> The plot will display the xlabel and ylabel, but not the title?
>
> x = 0:pi/30:2*pi; % x vector, 0 <= x <= 2*pi, increments of
> pi/30
> y = sin(3*x); % vector of y values
> plot(x,y) % create the plot
> xlabel('x (radians)'); % label the x-axis
> ylabel('sine function'); % label the y-axis
> title('y = sin(3*x)'); % put a title on the plot
> ??? Index exceeds matrix dimensions.
>