convert double NaN to string NaN
72 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Daneisha Blair
el 24 de Ag. de 2021
Comentada: Daneisha Blair
el 24 de Ag. de 2021
Hi
I have a cell array with NaN as shown in the image. How can I convert NaN to string NaN meaning instead of of seeing NaN in the array, I want to see "NaN".
I have tried this: TC(cellfun(@(x) any(isnan(x)),TC,'UniformOutput',false)) = {"NaN"}; but no success.
Any help is appreciated.
0 comentarios
Respuesta aceptada
KSSV
el 24 de Ag. de 2021
A = NaN(2,5) ;
C = arrayfun(@num2str,A,'UniformOutput',false)
5 comentarios
Más respuestas (1)
Ver también
Categorías
Más información sobre Characters and Strings en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!