why i get error?

2 次查看(过去 30 天)
razzz
razzz 2013-12-31
编辑: Wayne King 2013-12-31
i=i
MO=1;
fi=-pi:pi/100:pi;
y=(MO*(exp(fi*i))*(2*exp(fi*i)+1))/(EI*(8*exp(fi*i)+2*exp(2*fi*i)+2))
---
i got:
??? Error using ==> mtimes Inner matrix dimensions must agree.
Error in ==> rrrr at 10 y=(MO*(exp(fi*i))*(2*exp(fi*i)+1))/(EI*(8*exp(fi*i)+2*exp(2*fi*i)+2))

采纳的回答

Wayne King
Wayne King 2013-12-31
编辑:Wayne King 2013-12-31
It would help if you told us what EI is. I just made it equal to 1 here. Is this what you are looking for?
And why do i=i????
MO=1;
fi=-pi:pi/100:pi;
EI = 1;
y=(MO*(exp(fi*1i)).*(2*exp(fi*1i)+1))./(EI*(8*exp(fi*1i)+2*exp(2*fi*1i)+2));

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by