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 :: zsh corrupt history file 
Basic :: vscode unindent 
Basic :: git access token 
Basic :: Python: create zipfile 
Basic :: powershell how to removve only empty direcoties 
Basic :: dos/cmd equivalent to "head" 
Basic :: script to add value of 2 coulms of grid and show result in 3rd column 
Basic :: visual basic how to dynamically change a button to bold 
Elixir :: elixir string concatination 
Elixir :: elixir datetime to timestamp 
Elixir :: elixir get error message 
Elixir :: elixir function pattern matching 
Scala :: two dimensional array scala 
Scala :: scala option 
Scala :: if scala 
Actionscript :: truncate restart identity - syntax error at or near "identity" 
Excel :: excel formula not updating after inserting rows 
Excel :: freeze row in excel 
Perl :: perl mongodb conf location 
Pascal :: pascal pause until key is pressed 
Pascal :: Pascal (gpc 20070904) sample 
Gdscript :: gdscript for loop 
Abap :: comments in abap 
Assembly :: x86 assembly hello world 
Assembly :: spliting dateetimeindedx into date and time column 
Javascript :: jquery vslidation remove spaces from input 
Javascript :: filesaver.min.js cdn 
Javascript :: ajax cdn 
Javascript :: How to get the browser to navigate to a URL in JavaScript 
Javascript :: how to find number in string js 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =