From: Doug Walters on
I am having trouble getting the correct graph to come up. I am not getting any error files but all i get is a line y=x instead of the function i would like. Does anyone see what I'm doing wrong?
Here is the script I'm using to plot the function.


u=0.6
W=50
F=(u*W)/(u*cos(t) + sin(t))
fplot('F' [-10 10] 'b')
From: Rune Allnor on
On 3 Mar, 22:22, "Doug Walters" <dougfwalt...(a)gmail.com> wrote:
> Does anyone see what I'm doing wrong?

> fplot('F' [-10 10] 'b')

Don't know the functions you use, but if this is matlab
there's likely missing a couple of commas:

fplot('F' , [-10 10] , 'b')

Rune

From: TideMan on
On Mar 4, 10:51 am, Rune Allnor <all...(a)tele.ntnu.no> wrote:
> On 3 Mar, 22:22, "Doug Walters" <dougfwalt...(a)gmail.com> wrote:
>
> > Does anyone see what I'm doing wrong?
> > fplot('F' [-10 10] 'b')
>
> Don't know the functions you use, but if this is matlab
> there's likely missing a couple of commas:
>
> fplot('F' , [-10 10] , 'b')
>
> Rune

In addition to Rune's comment, you need to read the documentation:
help fplot
then click on function_handle down the bottom and read that as well.
F needs to be a function or function handle, not an equation.
Also, the function or function handle needs to have the argument t
defined as input.