Using Display function in an easy way

1 visualizzazione (ultimi 30 giorni)
I want to print name and value of a variable like "S" as below during the run:
S = 0.15
Can you help me with this please

Risposta accettata

Ameer Hamza
Ameer Hamza il 24 Set 2020
Modificato: Ameer Hamza il 24 Set 2020
S = 0.15;
fprintf('S = %.2f\n', S)

Più risposte (1)

madhan ravi
madhan ravi il 24 Set 2020
Use fprintf()

Categorie

Scopri di più su Data Types in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by