Switch Matlab

[Solved] Switch Matlab | Matlab - Code Explorer | yomemimo.com
Question : switch matlab

Answered by : dangerous-duck

x = [12 64 24];
plottype = 'pie3';
switch plottype case 'bar' bar(x) title('Bar Graph') case {'pie','pie3'} pie3(x) title('Pie Chart') otherwise warning('Unexpected plot type. No plot created.')
end

Source : https://it.mathworks.com/help/matlab/ref/switch.html | Last Update : Thu, 05 Mar 20

Question : matlab switch figure

Answered by : huldar

my_fig_number = 18;
figure(my_fig_number);

Source : https://www.mathworks.com/matlabcentral/answers/245496-how-to-switch-between-figures-while-simultaneously-plotting | Last Update : Thu, 18 Nov 21

Answers related to switch matlab

Code Explorer Popular Question For Matlab