You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the students would not actually see the output as displayed in the materials:
Maximum inflammation:
20
But rather, sequential outputs because we are using the command window:
disp('Maximum inflammation:')
Maximum inflammation:
disp(max(patient_data(:)))
20
Since we haven't introduced the editor and scripting at this point, maybe a solution is concatenanting arrays as done in previous episodes even if it is somewhat lengthy and nested.
Thanks for the issue. You're right they don't match exactly. While this would only be a potential problem to those following the notes rather than an instructor, we should fix this.
I'm wondering what the best solution would be. I like your idea of two commands on the same line separated by semi-colons. I'm also thinking whether it would be easiest to use double quotes which would mean strings instead of character arrays. So we could do something like this: disp("Maximum inflammation: " + num2str(max(patient_data(:))))
This would require some rewriting of episode 1 too.
Or, do we really need to cover printing of output like this? It's not one of the learning objectives in either episode, and is rather fiddly/clumsy in MATLAB.
In the episode,
https://github.com/swcarpentry/matlab-novice-inflammation/edit/gh-pages/_episodes/03-plotting.md
in the third Matlab input:
the students would not actually see the output as displayed in the materials:
Maximum inflammation:
20
But rather, sequential outputs because we are using the command window:
Since we haven't introduced the editor and scripting at this point, maybe a solution is concatenanting arrays as done in previous episodes even if it is somewhat lengthy and nested.
Or alternatively, but not necessarily advisable, on the same line:
In any case, the block of input commands (max, min, std) and its actual output should be matched.
The text was updated successfully, but these errors were encountered: