Update vector values and return to the program
10 次查看(过去 30 天)
显示 更早的评论
Hi all! I faced to the problem and can't solve it. Please anybody help me. It's very important for me...
I wrote a program, where I input t vector by ginput(n). Then my program calculate and construct a curve by the developed method (calculation part of the program).
MY PROBLEM IS: I want change values of the t vector and return to the calculation part of my program, in other words, I want to refresh my t vector each time. How to do this????
(I drag t vector points on the curve and fix it as a refreshed value).
Thanks in advance. Waiting forward for the answers!!!!
Best regards, Mane
0 个评论
回答(1 个)
Mischa Kim
2014-4-14
编辑:Mischa Kim
2014-4-14
Mane, not quite sure I understand. Do you want to read ginput's over and over again (with some calculations in between)? Something like
button = 1;
while sum(button) <=3 % read ginputs until a mouse right-button occurs
[x,y,button] = ginput(3);
end
3 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!