How to disable all figures that are invoked from within a matlab function?
Mostra commenti meno recenti
I have a main program where I have invoked some functions as shown below
main.m
clc;
clear all;
myfunc();
-------
plot----
-------
myfunc.m
% has some plots
Now when I run my main file I don't want to see the plots invoked from myfunc(); Pleas suggest me with some matlab statements to do this
2 Commenti
Walter Roberson
il 11 Mar 2014
This would be difficult to implement.
Nitin
il 12 Mar 2014
Why don't you just comment out the plot function?
% plot
Risposte (1)
Mischa Kim
il 12 Mar 2014
Modificato: Mischa Kim
il 12 Mar 2014
Saikiran, use
set(gcf,'Visible','off');
set(0,'DefaultFigureVisible','off');
for the current ( gcf ) and all following figures. You can turn it back on accordingly.
Categorie
Scopri di più su Line Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!