大家好,想請問一下一個作圖的問題
我想要用matlab,畫出以下圖片的函數圖(請點選網址),G為函數,變數為t,
想畫出plot(t,G)
我在matlab是這樣輸入的:
G=((4*pi*c*D*t).^(-1))*(exp(-(r.^2)*((4*D*c*t).^(-1))-u*c*t));
但都會顯示以下錯誤
{
Error using *
Inner matrix dimensions must agree.
Error in tt123 (line 7)
G=((4*pi*c*D*t).^(-1))*(exp(-(r.^2)*((4*D*c*t).^(-1))-u*c*t));
}
想請問一下是哪裡有問題,謝謝!!!!!!