From: Philosophaie on
I an trying to covert on of my old GUIs to a new one. I keep getting an error "Missing Matlab Operator".

All I have is a pushbutton and an Axes. The old GUI did work. Could you give me a few troubleshooting techniques one I my have overlooked.
From: Matt Fig on
"Philosophaie" <ertlejack(a)sbcglobal.net> wrote in message <i37tcp$dml$1(a)fred.mathworks.com>...
> I an trying to covert on of my old GUIs to a new one. I keep getting an error "Missing Matlab Operator".
>
> All I have is a pushbutton and an Axes. The old GUI did work. Could you give me a few troubleshooting techniques one I my have overlooked.



You did not mention what you changed, if anything. You did not explain what you meant by "old" vs. "new". Are you talking about a GUI which was made in a previous version of MATLAB? Do you mean the GUI ran fine one day, then didn't the next while everything else stayed the same? Did you edit the file and then discover it wouldn't work anymore? Is it a GUIDE GUI? Did the error message say more than what you posted?

Without more information, I would say the best you could do is use the debugging tools which come with MATLAB to try and find the source of the error.
From: Philosophaie on
"Matt Fig" <spamanon(a)yahoo.com> wrote in message <i37vls$677$1(a)fred.mathworks.com>...
> Without more information, I would say the best you could do is use the debugging tools which come with MATLAB to try and find the source of the error.

It has been a while since I have used MatLab. Here is my problem. I want to graph two sets of data ranging from 1900 to 2050 with non-even jumps. I have an array that incorperates the data:

ra(1900)=2
ra(1950)=3
ra(1990)=4
ra(2000)=5
ra(2050)=8

hold on;
for k=1900:10:2050
if ra(k)<>0
plot(k,ra(k))
end
end
hold off;

Could someone refresh me on the syntax.
From: Walter Roberson on
Philosophaie wrote:

> if ra(k)<>0

if ra(k) ~= 0
From: Philosophaie on
Walter Roberson <roberson(a)hushmail.com> wrote in message <CLM5o.15950$mW5.11932(a)newsfe14.iad>...
> Philosophaie wrote:
>
> > if ra(k)<>0
>
> if ra(k) ~= 0

This works great.

I am having a little trouble getting the dots to connect with lines. I put '-b' after the plot(k, ra(k), '-b'). There should be blue line connecting the points so I can run a "Data Fitting" in the graph section and get a linear or polynomial approximation.