A switch case statement that will help me to either run codeS in Windows or linux, based on whichever OS it is
Show older comments
I want to write a switch case statement that will help me to either run my code in Windows or linux, based on whichever OS it is. Any Suggestions!
Accepted Answer
More Answers (1)
Bjorn Gustavsson
on 23 Oct 2019
0 votes
Have a look at the commands: computer, ispc, insunix, ismac.
HTH
1 Comment
Sansit Das
on 23 Oct 2019
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!