using different cases of switch command with if else
古いコメントを表示
I am new to matlab. I have a question that, is it possible that different cases used in switch command can be used out side switch with if-else command.
I have a code which is given as follow

what I want to know is whether "p(1)" is calling "case 1" or it is different.
4 件のコメント
Azzi Abdelmalek
2013 年 8 月 25 日
Why did you post a code as an image?
ritzm
2013 年 8 月 25 日
Laurent
2013 年 8 月 25 日
If you use the 'Code' button on your code it will show up as proper code. Alternatively you can put two spaces in front of each line of your code. This gives the same result.
ritzm
2013 年 8 月 25 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Search Path についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!