How to use disp in matlab?
20 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Daniel Niu
il 10 Set 2023
Risposto: Walter Roberson
il 11 Set 2023
disp('Solutions for f''(x) = 0:');
Dear friend, I have some trouble with disp. why in the above code, the result is Solutions for f'(x) = 0:
how to display f''(x) using disp
Your help would be highly appreciated!
0 Commenti
Risposta accettata
Walter Roberson
il 11 Set 2023
disp('Solutions for f''''(x) = 0:');
disp("Solutions for f''(x) = 0:");
That is, inside a ' ' (apostrophe) delimited character vector, a single ' ends the character vector and '' (two ' in a row) results in a single ' in the character vector.
Inside a " " (double-quote) delimited character vector, each ' is literal, just a plain character -- but a single " (double-quote) ends the string and "" (two double-quote in a row) results a single " in the string.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Argument Definitions in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!