[討論] 程式問題~請各位幫一下~已回收

看板MATLAB作者 (toro)時間13年前 (2011/08/01 20:14), 編輯推噓1(101)
留言2則, 1人參與, 最新討論串1/1
我在matlab輸入以下程式 rxs=15;rys=15; rxx=[rxs:-rxs/100:0]; ryy=rys*log((rxx/rxs)); xx_init=rxs;yy_init=rys; rkk=(yy_init.*(-yy_init./rxx.^2))/(1+(yy_init./rxx)^2).^(3/2); plot(ryy) 結果她出現以下的錯誤 ??? Error using ==> mpower Inputs must be a scalar and a square matrix. Error in ==> Untitled2 at 5 rkk=(yy_init.*(-yy_init./rxx.^2))/(1+(yy_init./rxx)^2).^(3/2); 請問我哪裡有弄錯呢? 請各位大大幫我debug一下=ˇ= 感謝各位大大 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.120.4.7

08/01 23:01, , 1F
(yy_init./rxx).^2
08/01 23:01, 1F

08/01 23:01, , 2F
最右邊的
08/01 23:01, 2F
文章代碼(AID): #1EDfZ13I (MATLAB)