Assign value to individual components of the complex number
6 ビュー (過去 30 日間)
古いコメントを表示
I'd like to assign the value to individual components of the complex numer.
>> x = 1;
>> y = 1;
>> H = complex(x,y);
Now I'd like to change the only real part and only the imaginery part
pseudocode: H.real = 10;
pseudocode: H.imag = 10;
and expecting
pseudocode answer: H = 10+10i
How to do it in Matlab?
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!