How to write this in the title?

조회 수: 6 (최근 30일)
Ashfaq Ahmed
Ashfaq Ahmed 2023년 3월 7일
댓글: Walter Roberson 2023년 3월 7일
Hi, can any one please help me figuring out how can I write this title?
For the value of A, t, and phi I want to use the notation %d, %0.3f, and %0.2f
Thank you!!

채택된 답변

Walter Roberson
Walter Roberson 2023년 3월 7일
Hint:
fprintf('%d %0.3f %0.2f', randi(10), randn, randn)
5 1.085 0.37
  댓글 수: 7
Ashfaq Ahmed
Ashfaq Ahmed 2023년 3월 7일
편집: Ashfaq Ahmed 2023년 3월 7일
Got this!!
S = sprintf('$%0.2f + %0.2f \\sin( \\frac{%0.d \\pi}{365} + %0.2f)$', 10.05, 8.89, 2, -2.05)
S = '$10.05 + 8.89 \sin( \frac{2 \pi}{365} + -2.05)$'
title(S, 'interpreter', 'latex')
Walter Roberson
Walter Roberson 2023년 3월 7일
that looks good

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by