Results 1 to 8 of 8

Thread: error loading .m files on octave

Hybrid View

  1. #1
    Join Date
    Oct 2012
    Beans
    29

    error loading .m files on octave

    hi guys,
    im noob in octave. i get the following error whenever i load a . m file :

    " error: load: test_plot.m: inconsistent number of columns near line 3
    error: load: unable to extract matrix size from file `test_plot.m'
    "

    this happens for all the files that I've either downloaded from the internet, cut-copy-paste
    or written them myself on emacs.Is there something i've done wrong?

    Another question,are there any active communities dedicated to octave?i couldnt find any on google.is it because the coding is the same as matlab,so most users go to their websites?

  2. #2
    Join Date
    Apr 2012
    Beans
    7,256

    Re: error loading .m files on octave

    What are you trying to do exactly? the 'load' command is usually used for data files (e.g. .mat files) not for the .m files themselves

    If you want to run a matlab script file called file.m just type file (no .m) at the command line - the syntax is the same whether you are running octave or matlab iirc

  3. #3
    Join Date
    Oct 2012
    Beans
    29

    Re: error loading .m files on octave

    what i'm trying to do i run a .mat file (i realized my mistake .mat not .m, thanks) on octave.

  4. #4
    Join Date
    Oct 2012
    Beans
    29

    Re: error loading .m files on octave

    ok i get it now. to run a .m file which is already saved i just have to enter the file name without the .m .the load command is to load the saved workspace on the command line.

    but can anyone answer my second question.

  5. #5
    Join Date
    Apr 2012
    Beans
    7,256

    Re: error loading .m files on octave

    Well speaking personally I find most of what I need in the MATLAB docs online - only resort to trawling for octave-specific info if I need to use a function that has no direct MATLAB equivalent (for example, recently working with optimization and there was an octave function that 'did the same thing' but was called something different and had a different parameter list and setup requirements).

    But I am a fairly basic user - ymmv

  6. #6
    Join Date
    Oct 2012
    Beans
    29

    Re: error loading .m files on octave

    what about getting help.is this community fine

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •