Suppress unexpected output to command window
Ältere Kommentare anzeigen
In my class constructor I have the following lines:
* some code with inputparser to produce inp
obj.scal = inp.scal;
obj.matrix = inp.scal*matrix; % HERE obj is being printed for some reason
* some code to set other obj properties
Somehow, the object contents are printed to the command window after the second command (it assigns a matrix to the obj.matrix property). The class is a normal "data" class. I'm using Matlab R2015b. I've tried echo off, but it doesn't help. The problem is minor yet annoying.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Whos finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!