matlab中复数取实部和虚部
时间: 2023-11-02 15:20:22 浏览: 423
complexplot:此函数在同一图形上绘制具有实部和虚部的复信号图。-matlab开发
在MATLAB中,复数取实部和虚部可以使用以下函数:
- real(x):用于取复数的实部。
- imag(x):用于取复数的虚部。
例如,如果我们有一个复数x = 1 + 3i,那么调用real(x)将返回实部1,调用imag(x)将返回虚部3。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [matlab-基础 复数 实部、虚部、模、共轭、辐角](https://blog.csdn.net/weixin_34368949/article/details/92610108)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [MATLAB求复数的实部和虚部](https://blog.csdn.net/yundanfengqing_nuc/article/details/49001863)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文