回 帖 发 新 帖 刷新版面

主题:各位DX帮下忙~~!

小弟刚学M 有个画图的问题要问下 

 过程是这样: 
 t=0:pi/100:2*pi; 
 y=exp(-0.5.*t).*cos(t); 
 plot(t,y) 
 grid on 
 tt=t(fing(y==0.6)); 
 plot(tt,0.60,'ro','MarkerSize',10); 
 然后系统提示: 
 ??? Error using ==> plot 
 Vectors must be the same lengths. 

 后来我直接键入tt 系统提示 
 tt = 

 Empty matrix: 1-by-0 

 这是怎么回事 为什么在这个函数中无法找点 

 问题很初级 但也希望能的到帮助 谢谢各位了

 我的QQ:285105007 邮箱:dracula13@126.com  

回复列表 (共2个回复)

沙发

fing应该是find吧

板凳


     哦 这是笔误  

  程序应该是这样
  >> t=0:pi/100:2*pi; 
 y=exp(-0.5.*t).*cos(t); 
 plot(t,y) 
 hold on 
 tt=t(find(y==0.6)); 
 plot(tt,0.60,'ro','MarkerSize',10); 
??? Error using ==> plot
Vectors must be the same lengths.

 还是有问题

我来回复

您尚未登录,请登录后再回复。点此登录或注册