gpt4 book ai didi

matlab - 使用MATLAB分解复杂系统

转载 作者:太空宇宙 更新时间:2023-11-03 19:43:18 26 4
gpt4 key购买 nike

考虑以下复杂符号形式的系统:

% syms ix %// or
% syms x %//?
sys(ix) = ((10+(ix)))/((20+5(ix)+(10(ix))^2+(ix)^3))

在哪里

ix = imaginary part

MATLAB 可以符号计算 imag(sys(jx))real(sys(jx)) 吗?

最佳答案

syms x
sys(x) = ((10+1.*1i.*x))/(20+(5.*1i.*x)+((10.*1i.*x).^2))+((1.*1i.*x).^3);
imaginaryPart = imag(sys);

使用 1i 而不是 i,因为根据 documentation 它应该更健壮.

关于matlab - 使用MATLAB分解复杂系统,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35242406/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com