I am trying to check how the loop works hence, I am displaying the value of n in the for loop but it doesn't seem to work. Why doesn't n get displayed and how is the code (loop) working?
h=0.3;x=0:h:0.8;for n=4:length((x)-1) disp(n) % Doing something here
end
Best Answer