how to write zeta in matlab

조회 수: 27 (최근 30일)
Aisha Mohamed
Aisha Mohamed 2022년 4월 11일
댓글: Torsten 2022년 4월 11일
Hi
I am trying to legend the roots of my function as zeta1,zeta2....
I used this answer,
figure();
x = real(r0);
y = imag(r0);
for ii = 1:numel(r0)
plot(x(ii),y(ii),'ro');
hold on
% % text(x(ii),y(ii),sprintf('Zero #%d',ii), ...
text(x(ii),y(ii),sprintf('Zero %d',ii), ...
'VerticalAlignment','top','HorizontalAlignment','center');
grid on
end
I find this answer work but HOW can I write zeta instead of zero in this line text(x(ii),y(ii),sprintf('Zero #%d',ii), ...
  댓글 수: 2
Aisha Mohamed
Aisha Mohamed 2022년 4월 11일
I wrote (\zeta) in stead of zero , but zeta does not appear in the plotting why please?
Thank you

댓글을 달려면 로그인하십시오.

답변 (1개)

Torsten
Torsten 2022년 4월 11일
  댓글 수: 2
Torsten
Torsten 2022년 4월 11일
@Aisha Mohamed comment moved here
Hi
I did this . I write (\zeta) but ths does not work , I can not see this zeta in my figure. why this happened and how can me solve this problem please?
Thanks
:
Torsten
Torsten 2022년 4월 11일
I think @_ could answer your question satisfactory.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by