Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How can I change my fprint error

1 visualización (últimos 30 días)
Yixuan Zhang
Yixuan Zhang el 15 de Sept. de 2019
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021

Respuestas (1)

Image Analyst
Image Analyst el 15 de Sept. de 2019
Editada: Image Analyst el 15 de Sept. de 2019
You can't use the Ice array itself for indexes since they're floating point and indexes need to be like 1, 2, 3, 4, 5 etc. (integers starting at 1). To fix:
fprintf('Ice thickness for %d days = ', length(Ice));
fprintf('%.3f, ', Ice);

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by