| 查看: 702 | 回复: 1 | ||
| 当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖 | ||
[求助]
求助Matlab的GUI问题 已有1人参与
|
||
|
大家好, 求大神指教个问题:为啥我用matlab直接计算,以下程序可以画出来两张图,每张图有很多条曲线。即每个步长会出现一条曲线。 但是,当我用GUI时,就只显示一条曲线,看上去上一个步长的线会被新的线取代。 if rem(j,Nplot)==0 % plotting routine: two cases tag_data = tag_data + 1; if size(U)==size(X)% means that grid is still moving figure(9), plot(handles.axes2,X(:,j+1),U(:,j+1),'r',X(:,j+1),C3Ar(:,j+1),'b:'); hold on; figure (10), plot(handles.axes1,X(:,end),Epsv(end,:,j-1),'b'); hold on; else % take in account fact that grid is fixed at S=N+1, % thus X is not updated anymore from this time on. figure (9), plot(handles.axes2,X(:,end),U(:,j+1),'r',X(:,end),C3Ar(:,j+1),'b:'); hold on; %plot(handles.axes2,X(:,end),U(:,j+1),'r',X(:,end),C3Ar(:,j+1),'b:'),hold on; figure (10), plot(handles.axes1,X(:,end),Epsv(end,:,j-1),'b'); hold on; end hold on; end % end test for plotting routine 十分感谢您的帮助! |
» 猜你喜欢
有机合成以后会不会被AI改变?做科研的虫友怎么看
已经有7人回复
求合成方法
已经有6人回复
上海工程技术大学 激光智能制造课题组 2027级博士研究生招生
已经有4人回复
现代”学阀”该如何界定
已经有12人回复
国社科系统bug了,是不是要放榜了?
已经有10人回复
课题组招2027级博士 上海工程技术大学 激光智能制造方向
已经有4人回复
我的奶奶
已经有3人回复










回复此楼