Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8443597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:10:54+00:00 2026-06-10T09:10:54+00:00

I need to implement a couple of algorithms in MATLAB (homework), however I want

  • 0

I need to implement a couple of algorithms in MATLAB(homework), however I want to use GNU Octave instead. But I’d like to turn off any octave extensions, and basically turn it into FOSS-version of MATLAB. What settings should I change? What command-line options should I provide when executing octave program?

PS: I am aware of --traditional command-line option, although it doesn’t seem to do much.

PPS: Any suggestions are welcome. If following your advice requires, for example, rebuilding octave from source, let it be.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T09:10:55+00:00Added an answer on June 10, 2026 at 9:10 am

    Aside using the --traditional option there’s nothing you can do. Simply do not use the extra syntax that Octave offers. After all, Matlab syntax is a subset of the GNU Octave language, and it’s up to you to use that subset only.

    EDIT: It’s not the answer you’d like but there’s a good reason why that’s an impossible task (by impossible, I mean very difficult. The only option is really to just fork Octave and change it until it’s an exact clone. And you don’t want to do it, trust me). Imagine the following very example. Octave has the functions ‘rows’ and ‘columns’ but Matlab does not. If you changed Octave so that these functions no longer exist, all other Octave functions that use them (I’m guessing a lot), will also stop working.

    Others before you have successfully convinced their professors to accept homework written in Octave though, just make sure you at least try to write compatible code.

    EDIT 2: I’ll try to explain by comparing this situation with pianos (seems like a very good comparison). You can buy a piano with 85 or 88 keys. Now imagine that Matlab is a piano with 85 keys while Octave is a piano with 88 keys (if you want, also imagine that Matlab has 3 pedals while Octave only has 2 pedals). The only difference between the two pianos is that one has a slightly larger tonal range, i.e., it can play a few more tones (from the 3 extra keys). But when you play a C4 on a piano with 85 keys and a C4 on a piano with 88 keys, the sound is the same, they are the same note. The notes are the functions and keywords you have available. They are the same. A note in one piano is the same note on the other.

    Now, if you are a composer writing music, you may want to take that in consideration. Just don’t write any piece of music that requires those extra keys. The music will be the same in both types of pianos. If you have a piano with 88 keys, you will not chop off the 3 extra keys because you want it to be compatible with the 85 keys pianos. You simply don’t play those keys. A piano with 88 keys is compatible with a piano with 85 keys, in the same way that Octave is compatible with Matlab.

    If you want a guide to remind you that you can’t use those extra keys, I’d guess you could put some red tape on them to remind you not to use them. Similarly, use Octave with a text editor that has different syntax highlight for Octave and Matlab so it will highlight incorrectly when you use syntax that is not part of Matlab. Aside that, there is nothing you can do (unless you count forking the Octave project, request Mathworks to implement them in Matlab or implementing them yourself. I don’t mean this as rude sarcasm, just trying to be exhaustive).

    For sake of completion, yes Octave has not implemented all Matlab things yet but it’s moving that way as people develop it. It’s not a static project (just take a look at the NEWS file for the development branch for example), things get implemented as the people who need them develop them. And some functions do behave differently but those are bugs you can report (and even fix since after all it’s free and open source). Such incompatibilities are not there for the sake of annoying users. They are there because no one has reported or fixed them. Plus most of them are for incorrectly or undocumented Matlab features.

    EDIT 3: you can also turn on the matlab incompatible warnings (which are off by default). Run warning ('on', 'Octave:matlab-incompatible'). You can leave this on your .octaverc file. To see more warnings look into warning_ids.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to implement something like a full text search on a couple if
I need to implement portable code, but I do not know how to deal
I need to implement an efficient excel-like app. I'm looking for a data structure
I have a couple of classes that implement an interface, IFoo. I need to
I'm working on a project for class where we need to implement a couple
I need to implement a couple of functions which comply with the following: function
I need to implement the following: There is a table A which is supposed
i need to implement the email signature with image.As of now we only support
I need to implement AI for game based on fuzzy logic. I need to
I need to implement some new functions on an editor. I picked Emacs -

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.