본문 바로가기

tamplete2

Using the Matlab 'for Statement' | Loop Statement Using the Matlab 'for Statement' | Loop Statement One of the most confusing things about using various computer languages is the 'for statement.' Each language has different forms, so I search every time I write it. I just wrote down for example, so I hope you can freely scrape and correct it. %% Setting a = zeros(1,10); % make that variable a is 1X10 matrix. %% for loop for i = 1:length(a) % i .. 2020. 9. 24.
Using Matlab 'if Statement' | Assumption Statement Using Matlab 'if Statement' | Assumption Statement 'If statement' is confusing each time it is written because the rules vary depending on all programming languages. I'll leave you an example for the matlab, so if you don't remember, it'll be convenient to scratch it quickly and correct it. %% if-Statement Example Code if a == b display('a and b are same') elseif a > b display('a is bigger than .. 2020. 9. 24.
반응형