[心得] 初學funtion 入門問題
程式碼
function [x,y]= poler2rect(r,theta)
x=r*cos(theta*pi/180);
y=r*sin(theta*pi/180);
RUN之後
??? Input argument "r" is undefined.
Error in ==> poler2rect at 2
x=r*cos(theta*pi/180);
出現這個bug 可是我不知道怎麼解
感覺 蠻基礎得
麻煩 carry一下小妹QQ
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.171.102.18
※ 文章網址: http://www.ptt.cc/bbs/MATLAB/M.1405173666.A.60C.html
推
07/12 23:55, , 1F
07/12 23:55, 1F
→
07/12 23:56, , 2F
07/12 23:56, 2F
推
07/13 13:19, , 3F
07/13 13:19, 3F
→
07/15 00:08, , 4F
07/15 00:08, 4F
MATLAB 近期熱門文章
PTT數位生活區 即時熱門文章
6
27