Sunday, December 16, 2018
Monday, 16 March 2015 10:08

How to suppress Matlab warnings

In many cases Matlab produces different warnings. Some of them are useful, some are REALLY not. Such warning as "Warning: Image is too big to fit on screen; displaying at 50%" is really annoying and disrupts output in command window.

The Web is full of suggestions like providing initial magnification:

imshow(X,'InitialMagnification',50);

but that's not a cure, it only masks symptoms. To turn it (or any other warning) REALLY off just click on the uppermost link in inner matlab files that produced that warning, find warning ID like 'images:initSize:adjustingMag' and copy it into clipboard. Then add the following line to your script:

warning('off','images:initSize:adjustingMag');

This will really suppress this Matlab warning and you will not see it any more.

Published in Blog

Welcome!

Here I publish articles related to my areas of interest, my brief notes that may save some time to others, as well as some of my works.

This site is a work in progress. I will add more sections in the future, such as

  • More photos to photogallery
  • More Joomla!-related articles
  • ...

 

themeforest

New Posts

Using dynamic GeoIP module with nginx (CentOS)

nginx introduced dynamic module support in v. 1.9.11. This brief article provides step-by-step procedure...

13-04-2016 in Linux, BSD, Unix

READ MORE

Visual difference between pseudo and true random data

This is is "random" image generated using PHP rand() function: And this is an image...

20-11-2015 in Blog

READ MORE

Best EEPROM practices

(this article is a work in progress). My own advice will be added later...   Having...

12-10-2015 in Arduino

READ MORE
Scroll to top

We use cookies, just to track visits to our website, we store no personal details Privacy policy