foreach loop with strings in Matlab

前端 未结 3 2031
盖世英雄少女心
盖世英雄少女心 2021-02-20 17:43

I want to create a loop that will iterate over several strings, but unable to do so in Matlab.

What works is:

for i=1:3
  if (i==1)
    b=\'cow\';
  else         


        
3条回答
提交回复
热议问题