Search
 
SCRIPT & CODE EXAMPLE
 

MATLAB

switch matlab

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
Comment

matlab switch figure

my_fig_number = 18;
figure(my_fig_number);
Comment

PREVIOUS NEXT
Code Example
Matlab :: matlab title with variable 
Matlab :: anonymous function matlab 
Matlab :: octave disable warning 
Matlab :: how to read dat file in matlab 
Matlab :: matlab preallocate array size 
Matlab :: matlab log 
Matlab :: matlab function without output 
Matlab :: what is java_home 
Matlab :: matlab text subscript 
Basic :: git token 
Basic :: basic authentication in REST api Dajngo 
Basic :: change c code to c++ online 
Elixir :: elixir string to time 
Elixir :: elixir datetime to timestamp 
Elixir :: phoenix ecto query expression 
Elixir :: elixir with else 
Scala :: How to make immutable variable in scala 
Scala :: scala multiline string 
Actionscript :: rabbitmq login was refused using plain 
Excel :: excel column number 
Perl :: perl do while loop 
Perl :: what happened to perl 6 
Pascal :: pascal 
Powershell :: To look at a profile to see information about a wifi network 
Abap :: abap shortcut comments 
Assembly :: x86 assembly hello world 
Assembly :: re optional 
Javascript :: jquery vslidation remove spaces from input 
Javascript :: jquery add input placeholder 
Javascript :: p5.js cdn 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =