String Function MATLAB help
Mostra commenti meno recenti
What is a MATLAB function you could use to find the number of characters in a string by using a single function call without displaying the string?
Risposte (1)
Walter Roberson
il 23 Mar 2019
0 voti
2 Commenti
Laura Blydenburgh
il 23 Mar 2019
Walter Roberson
il 23 Mar 2019
That has nothing to do with string length. You simply need to add semi-colon to the end of the lines.
str = "Hello World"; %semi-colon tells MATLAB not to display result
L = strlength(str) %no semi-colon so that MATLAB will display result
Categorie
Scopri di più su Characters and Strings in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!