![]() |
text错误!?
代码如下:
xPic=a;yPic=b; %a,b是实数,可能是正,也可能是负 plot(xPic,yPic,'pr','markersize',8,'MarkerFaceColor','r');%画点 str_ls=['(',num2str(xPic),',',num2str(yPic),')'];%点坐标字符串 text(xPic,yPic,str_ls);%%在图上标出点的坐标 问题: 每次必须重启MATLAB r2008, 否则报错: ??? Subscript indices must either be real positive integers or logicals. 为什么呢? |
回复: text错误!?
是不是我的MATLAB缺什么库或者什么数学计算模块呢?
因为现在连sum(x.^2)也报错: ??? Subscript indices must either be real positive integers or logicals. 到底怎么回事呢?有时好用,有时就报错? 请高手指教。 |
回复: text错误!?
难道是我在哪儿把sum函数定义成变量 了?
如果是这样的话,我怎么查找所有的sum呢? |
回复: text错误!?
找到了,确实在某一个地方,sum被定义成了变量。
|
所有时间均为北京时间。现在的时间是 03:24。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.