change char class to string class
Mostrar comentarios más antiguos
How to change the output from char class to string class ?
function Out=bestSection(Number,Letter,Grades)
[~,ind]=max(Grades);
Out=[num2str(Number(ind)),Letter(ind)];
end
1 comentario
Stephen23
el 18 de Jun. de 2020
The most robust and efficient solution is to use sprintf, which also lets you specify the numeric conversion format.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Characters and Strings 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!