|
From: | Nicholas Jankowski |
Subject: | Re: Need quick start on plotting 3D points |
Date: | Sat, 9 Jan 2016 07:28:08 -0500 |
On Jan 8, 2016 6:44 PM, "Bob001" <address@hidden> wrote:
>
> Further update:
> I found an example under Simple File I/O in the documentation on saving data
> to a file:
> A = [ 1:3; 4:6; 7:9 ];
> save myfile.mat A
>
> I tried that example and then immediately followed it with:
>
> b=load myfile.mat
>
> Assuming that the saved file should be in the correct format. But, again I
> got the same error message:
>
> octave-3.4.0:13> b=load myfile.mat
> parse error:
>
> syntax error
>
> >>> b=load myfile.mat
Try
>> help load
There are two forms for using load and save. The command form
>> load filename
And the function form
>> load('filename')
With the function form you can assign to a variable as you were trying
>> b=load('filename')
With the command form the data will go into a variable with the same name as the file.
Nick J
[Prev in Thread] | Current Thread | [Next in Thread] |