[繪圖] 不行改數字已回收

看板MATLAB作者 (c++)時間15年前 (2011/01/01 03:47), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
x=linspace(0,90,100); e=(1/1.5); c=asind(e*sind(x)); f=sind(x-c) g=sind(x+c) h=(1.5/1)*cosd(c)./(cosd(x)) i=2*sind(c).*cosd(x)./(sind(x+c)) y=h.*(i.^2); z=(f./g).^2; plot(x,y,x,z) plot(x,y,'g:',x,z,'r-') % 加上不同的顏色及符號來區別二條曲線 ----------------------------------------------------- 以上可運行 但將e的1/1.5改成1.5/1 h的1.5/1改成1/1.5 執行後卻出現 ??? Error using ==> sind Argument should be real. 如何修改呢 感謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.117.10.184
文章代碼(AID): #1D7ZCvtS (MATLAB)