![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/18497216_1589469669714_DEF.jpg)
Randall Ang
Followers: 0 Following: 0
Feeds
回答済み
Homework: Write a function called char_counter that counts the number of a certain character in a text file.
This is my solution, u can take a look for other alternatives. function charnum = char_counter(fname,character) %fname - char ...
Homework: Write a function called char_counter that counts the number of a certain character in a text file.
This is my solution, u can take a look for other alternatives. function charnum = char_counter(fname,character) %fname - char ...
約4年 前 | 0
質問
Hi everyone, I have been trying to debug this for loop as it always retain the last value of the array even if none of the conditions meet for every element. For instance, using readings = [1 20 55 90], it will print that reading(4)>100.
for ii = 1:length(readings) if readings(ii) > 100 break; end end fprintf('First reading above 100 is at in...
約4年 前 | 1 件の回答 | 0