看板 MATLAB 關於我們 聯絡資訊
單變數 f=@(x)x.^2+x+1; 多變數 f=@(x,y,z)x^2+x+1+y^2+y+z; 三角函數 f=@(x,y,z)x^2+sin(y)+cos(z); 指數函數 f=@(t)=5*exp(t); but f=@(t)=exp(5*t) or f=@(t)=5*exp(t)^5 fail f=@(t,y)=5*exp(t)^5+y fail Error: The expression to the left of the equals sign is not a valid target for an assignment. then how to match exponential function? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.89.169
Feis:去掉等號 ? 01/05 16:50
Feis:f=@(t,y)5*exp(t)^5+y 可以嗎? 01/05 16:50
nonumber:stupid i :( . copy and paste let me forget '=' 01/05 18:50
nonumber:thank you 01/05 18:51