필터 지우기
필터 지우기

writing data of formula

조회 수: 1 (최근 30일)
Busra Akdag
Busra Akdag 2022년 12월 26일
답변: Kunal Kandhari 2023년 1월 17일
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
Torsten
Torsten 2022년 12월 26일
Z(s) = ...
instead of
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에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by