[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem Loading Data
From: |
Laurent Hoeltgen |
Subject: |
Re: Problem Loading Data |
Date: |
Sun, 29 Jul 2012 05:21:11 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0 |
On 07/29/2012 04:51 AM, Andrew_JT wrote:
> Hi All,
>
> I am trying to load a data file, that is in the M File type.
>
> I have changed the directory to the location that I have the file, and
> confirmed the new location with pwd.
>
> I was not expecting problems with the file because it is from the machine
> learning class from Coursera.
>
> But when I write load (using the command load filename.m) I get an error
> message that says "inconsistent number of columns near line 2" and "unable
> to extract Matrix size from filename.M"
>
> Any help is appreciated. I am also interested in a general idea of the file
> types that Octave can handle, points on loading data, and general tips for
> using Octave in Windows.
>
> Thank you for the assistance.
>
> Best,
> Andrew
>
>
>
> --
> View this message in context:
> http://octave.1599824.n4.nabble.com/Problem-Loading-Data-tp4631851.html
> Sent from the Octave - General mailing list archive at Nabble.com.
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
>
Hi,
.m files usually contain functions, scripts, classes etc... Data, is
saved in .mat files. If your data is saved in an m-file, the simplest is
probably to run it like a script. Afterwards you should be able to
access the variables.
Regards,
Laurent