[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: In this example code, I can't get interpl or spline to produce outpu
From: |
Ben Abbott |
Subject: |
Re: In this example code, I can't get interpl or spline to produce output, whats wrong? |
Date: |
Tue, 03 Apr 2012 18:14:26 -0400 |
On Apr 3, 2012, at 6:02 PM, Mark Lytle wrote:
> Hi Ben,
>
> Yep, a typo, the minus sign shouldn't have been there..
>
> Now with:
>
> x1=linspace(0,5,.05)
>
> I get the same output...
>
> This should be right based on:
>
> linspace' is a built-in function
> -- Built-in Function: linspace (BASE, LIMIT, N)
>
> I apologize for this large script (email client acting up), but 0 was meant
> to be the base and 5 the limit, increment of .05...
>
> Produces the same result
Please take a look at "help linspace"
x1=linspace(0,5,.05)
x1 = 5
Maybe you want ...
x1=linspace(0,5,101)
Ben