writing data of formula

1 次查看(过去 30 天)
Busra Akdag
Busra Akdag 2022-12-26
It is my part of the codes. As such, it gives all Z values. And I want to write imag and real Z but everytime matlab gives me just last value of Z. What can I write all values of imag Z and real Z.

回答(1 个)

Kunal Kandhari
Kunal Kandhari 2023-1-17
Hi
Z = (sin(k)/x_2(s)) * ((cos(phi(k)) + (1j*(sin(phi(k))))))
The variable Z just stores the calculated value in every iteration of code, if you want to store the values of all the iterations, you need to change it to array by doing the following modification:
Z(s) = (sin(k)/x_2(s)) * ((cos(phi(k)) + (1j*(sin(phi(k))))))

类别

Help CenterFile Exchange 中查找有关 Desktop 的更多信息

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by