help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Consecutive graphs


From: Moo
Subject: Re: Consecutive graphs
Date: Wed, 10 Nov 2010 19:49:40 -0700

On Wed, Nov 10, 2010 at 11:41 AM, george brida <address@hidden> wrote:
hello all,
I would draw four graphs consecutively from top to bottom: the first graph is to plot the function  f (x) = x ^ 2 with x: 1:0.1:5.
Headings of x-axis and y-axis are respectively and Del Fel. The title of the graph is Graph number 1.
The second graph is to represent the function f (x) = (x-1 / 2) ^ 2 for even values of x. Headings of x-axis and y-axis are respectively and Del1 Fel1. The title of the graph is Graph number 2.
 The third graph is to represent the function f (x) = (x-1 / 3) ^ 2 for even values of x. Headings of x-axis and y-axis are respectively and Del2 Fel2. The title of the graph is Graph number 3.
Finally,  the fourth graph is to represent the function is f (x) = (x-1 / 4) ^ 2 for even values of x. Headings of x-axis and y-axis respectively and LED3 Fel3. The title of the graph is Graph number 4.
Thank you in advance,
George.

_______________________________________________
Help-octave mailing list
address@hidden
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave


The functions you need to do all this are "plot", "xlabel", "ylabel", "title", and "figure".  I assume you already have the x and y arrays for your functions.  You can always type help function to see the syntax for a function.

For the first plot, as an example:

figure(1)
x1 = 1:0.1:5;
y1 = x.^2;   %note the period before the ^
plot(x1,y1)
xlabel('Del'), ylabel('Fel'), title('Graph number 1')

I'm sure you can do the other graphs following this template.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]