I have read several people asking about why their matlab wont plot anything. I still can't figure out why mine wont plot. This is my code
>> close all>> n=1:25;>> R(n) = -80;>> while n<26R(n+ 1) = -0.8*R(n);endplot(n,R(n))
once I type end and press enter, the hashmark showing exactly where you are typing disappears and stops blinking so I feel like my plotting isn't going through. I don't know if that has anything to do with it. Another thing I notice is that why it shows >> for previous statements and once I enter the while n<26 line, it doesn't give me anymore >> lines. I am very inexperienced with Matlab, any help is highly appreciated. I've read figure() helps some people, where exactly in my code am I supposed to type this?
Also, when I close my matlab it says "an operation is in progress….." I don't know if this matters.
Best Answer