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 8193729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:34:56+00:00 2026-06-07T04:34:56+00:00

I am using Octave version 3.4.3, and I get this warning: warning: fmincg.m: possible

  • 0

I am using Octave version 3.4.3, and I get this warning:

warning: fmincg.m: 
possible Matlab-style short-circut operator at line 104, column 20

I know why this warning occurs, I just want to make the warning not appear on screen when run.

I know I can suppress ALL warnings by putting this command at the top of my octave program:

warning('off','all');

Docs: https://octave.sourceforge.io/octave/function/warning.html

But that disables all warnings which is bad form. How to disable only this one?

  • 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-07T04:34:58+00:00Added an answer on June 7, 2026 at 4:34 am

    Disable warnings by warning type in GNU Octave:

    See the list of warnings and their warning id’s and names here in section: ‘12.2.2 Enabling and Disabling Warnings’. https://octave.sourceforge.io/octave/function/warning_ids.html

    The warning names and id’s are listed with octave command:

    help warning_ids
    

    Put this command in your octave program before the warning occurs:

    warning('off', 'Octave:possible-matlab-short-circuit-operator');
    

    or disable all warnings with

    warning('off', 'all');
    

    Note: If your warning is thrown by the octave interpreter itself before your script is run, then you’ll have to take a different approach. For example use octave yourfile.m 2>/dev/null which also has the unfortunate side effect of redirecting the stderr of both the octave engine and your script.

    Certain warnings terminate the process, and can’t be suppressed, they must be remedied:

    Like this one:

    warning: function /home/el/octave/multicore-0.2.15/gethostname.m 
             shadows a built-in function
    

    To fix this, rename /home/el/octave/multicore-0.2.15/gethostname.m to /home/el/octave/multicore-0.2.15/gethostname_backup.m. And the warning goes away. It’s a bug in the software where two files have the same name, so the program doesn’t know which one to use.

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

Sidebar

Related Questions

Possible Duplicate: Octave/MATLAB: How to compare structs for equality? is there a simple comparison
I am trying to convert code that contains the \ operator from Matlab (Octave)
I'm using the cov (covariance) function of Matlab and Octave. Actually I'm using Octave
How do I find generalized Eigen Values, Vectors using Eigen3 library? In octave, matlab,
I am using Ubuntu 12.04 and Octave: $ octave octave:1> _ I set my
using this http://bl.ocks.org/950642 we can see how to add images to nodes, the question
Using CI for the first time and i'm smashing my head with this seemingly
Using the Redis info command, I am able to get all the stats of
Using Location.getBearing(); I seem to get randomly changing bearings. Aka, I can turn the
Using import datetime in python, is it possible to take a formatted time/date string

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.