why does the imaginary part show?
8 ビュー (過去 30 日間)
古いコメントを表示
Hi, I use matlab to calcuate something for me, and the expressions is
pf=edw*([d12-coef1^(1/r)*d11,d22-coef1^(1/r)*d21;...
d13-coef2^(1/r)*d11,d23-coef2^(1/r)*d21]\[coef1^(1/r)-1;coef2^(1/r)-1]);
all the parameters are read in from the excel file. But I always get the answers with the form like this [2.167347704427648e+03 + 0.000000000000000e+00i, 2.415785715277585e+03 + 0.000000000000000e+00i]. As I already check about the parameters, they shouldn't produce complex numbers. But why instead the answers containing imaginary part*0?
0 件のコメント
回答 (1 件)
Image Analyst
2013 年 5 月 17 日
What are the values of all the variables? You forgot to tell us. Also, why is there a ... after the semicolon that terminates line #1? This makes the next line not considered when calculating pf - don't know if you want it to be or not.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!