Calculating number in a string
Mostrar comentarios más antiguos
SampleText.txt
file = 'SampleText.txt';
any assitance would be much appriciated, thanks.
Respuesta aceptada
Más respuestas (1)
Mathieu NOE
el 30 de Ag. de 2021
hello
you can add these lines to your code :
for ci = 1:nLines
if size(fileStr{ci})>0
disp([num2str(ci) ' : ' fileStr{ci}]);
end
end
1 comentario
Mathieu NOE
el 30 de Ag. de 2021
FYI, the if statement line is to not display empty cells , but if you wish to have it, just remove that statement;
all the best
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!