How to write this in the title?

1 visualización (últimos 30 días)
Ashfaq Ahmed
Ashfaq Ahmed el 7 de Mzo. de 2023
Comentada: Walter Roberson el 7 de Mzo. de 2023
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!!

Respuesta aceptada

Walter Roberson
Walter Roberson el 7 de Mzo. de 2023
Hint:
fprintf('%d %0.3f %0.2f', randi(10), randn, randn)
5 1.085 0.37
  7 comentarios
Ashfaq Ahmed
Ashfaq Ahmed el 7 de Mzo. de 2023
Editada: Ashfaq Ahmed el 7 de Mzo. de 2023
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 el 7 de Mzo. de 2023
that looks good

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by