formattedDisplayText

Capturer la sortie d'affichage en tant que chaîne.

📝 Syntaxe

  • str = formattedDisplayText(V)

  • str = formattedDisplayText(V, Name, Value)

📥 Argument d'entrée

  • V - Variable à retourner sous forme de chaîne

  • Name, Value - Arguments paires nom-valeur, Name : 'NumericFormat' ou 'LineSpacing'.

📤 Argument de sortie

  • str - une chaîne

📄 Description

str = formattedDisplayText(V) renvoie la sortie d'affichage de V sous forme de chaîne.

La chaîne est équivalente à la sortie de disp(V).

💡 Exemple

R = eye(3, 3)
str = formattedDisplayText(R)
R = rand(3, 3);
disp(R)
str = formattedDisplayText(R)
str = formattedDisplayText(R, 'NumericFormat', 'bank', 'LineSpacing', 'compact')

🔗 Voir aussi

display, disp, format.

🕔 Historique

Version
📄 Description

1.0.0

version initiale

Last updated

Was this helpful?