I have these two errors when i try and run my script. Any help greatly appreciated
Mostrar comentarios más antiguos
Respuestas (1)
T = [T tmpt]
From the error, it is possible that this condition
T(find(T==-9.99)) = NaN; %
is not satisfied in the last(215th) filename which will return a zero (empty) index value. In Matlab zero indexing is not used, only one based indexing is followed.
3 comentarios
Ollie Middlebrook
el 8 de Dic. de 2022
Ollie Middlebrook
el 8 de Dic. de 2022
Walter Roberson
el 8 de Dic. de 2022
find will never return 0. It can return empty but assignment using empty index is permitted.
You do not show us what the error is.
Categorías
Más información sobre Matrix Indexing 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!
