MatLab: Plotting in GUI uicontrol

  • MATLAB
  • Thread starter Philosophaie
  • Start date
  • #1
461
0
Having trouble plotting in a GUI. You have to first start with the axes command in the gui code. Then the plot. When you do the previous two actions noting comes up on the screen. The code:

axes('position',[1000,900,1000,900])
...
for k=9:1:-1
hold on;
for o=0:2*pi:.1;
x(k) = a(k) * (1 - (ecc(k) ^ 2)) / (1 + (ecc(k) * cos(paR(k) + o))) * cos(NR(k) + paR(k) + o);
y(k) = a(k) * (1 - (ecc(k) ^ 2)) / (1 + (ecc(k) * cos(paR(k) + o))) * sin(NR(k) + paR(k) + o);
plot(x(k),y(k));
end
end

All of the equations I am trying to plot are valid, data and all, it is just I am new to plotting in a GUI. There are probably some commands I am missing. Do you have any suggestions?
 

Answers and Replies

Related Threads on MatLab: Plotting in GUI uicontrol

Replies
0
Views
8K
  • Last Post
Replies
2
Views
4K
  • Last Post
Replies
8
Views
5K
  • Last Post
Replies
1
Views
9K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
1
Views
4K
  • Last Post
Replies
0
Views
6K
Replies
1
Views
7K
  • Last Post
Replies
0
Views
2K
  • Last Post
Replies
1
Views
7K
Top