[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help with plotting - major problem with
From: |
Ben Abbott |
Subject: |
Re: Help with plotting - major problem with |
Date: |
Fri, 05 Oct 2012 14:21:01 -0400 |
On Oct 5, 2012, at 2:14 PM, drugistudent wrote:
> Hi! I'm from Poland and I study at Gdansk University of Technologi - Civil
> Enginerring.
> I've a problem with this task http://i49.tinypic.com/1z6d2xf.jpg - plot in
> MATLAB all lines which are in the picture but I'm using an octave ;)
> I've succesfully plotted straight lines but i've major problem with sinus
> (or tanges,cosinus other function that must be from 0.2 to 0.3,0.01 to 0.06
> etc)
> I'm typing (in blank m-file) :
>
> t=[1:0.1:9]
> y=sin(t)
> plot(y)
>
>
> and octave plot this:
>
> http://tinypic.com/r/4uc56t/6
>
> why it's showing my field as t=[10:90]
> this problem apper also in other function, and it's analogy eg. t=[1:0.01:9]
> it shows t as from 100 to 900
>
> i'm using octave (3.6.2) + xoctave + packages i installed during
> installation
>
> please help me ;)
> thx in advance
You need to include "t" in the plot.
plot (t, y)
Ben