imaginary number
7 ビュー (過去 30 日間)
古いコメントを表示
okay this should be simple, but it's not working. i'm just trying to assign a name to the imaginary part of Sload, but i'm getting an error message.
here's the script:
Sload = VldRect*(conj(IC1Rect+IC2Rect+IindRect))*.5
Pload = real(Sload)
Qload = imag(Sload)
here's the output:
Sload =
0.0170 + 0.0003i
Pload =
0.0170
??? Subscript indices must either be real positive integers or logicals. Error in ==> Matlab_project_2_newest at 175
Qload = imag(Sload)
0 件のコメント
回答 (2 件)
Walter Roberson
2012 年 6 月 5 日
In your earlier Question, you defined "real" and "imag" as variables in your script, overriding their use as functions. Until you
clear real imag
or restart MATLAB, your scripts are going to continue to find those as being variables.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Import, Export, and Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!