Dear CodeRunner community,
is it possible to realize a question type like follows:
We have a simple octave script like this
h=0.1; % step's size N=10; % number of steps y(1)=1; for n=1:N y(n+1)= y(n)+h*(-6*y(n)); x(n+1)=n*h; end plot(x,y)
(just for example: Euler's method, taken from here).
Now, I want that the students should see the above code like this
h=0.1; % step's size N=10; % number of steps y(1)=1;
Now, they should add the for-loop as above and by clicking the "check" button they should see the
Shortly, I want the students to add some parts of specific octave scripts and by clicking the "check" button the whole script should run.
I assume that is possible by adding a new octave question type for each script. But not really sure about this.