Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Why there is error for "str_id = num2str(gr​id_id,'%2.​2i');"? what should I change?

1 vue (au cours des 30 derniers jours)
Amra Rajuli
Amra Rajuli le 29 Jan 2018
Clôturé : MATLAB Answer Bot le 20 Août 2021
Why there is error for "str_id = num2str(grid_id,'%2.2i');"? what should I change? the error message is:
Not enough input arguments.
Error in data_proc (line 174) str_id = num2str(grid_id,'%2.2i');
  1 commentaire
Guillaume
Guillaume le 29 Jan 2018
If you want help with an error, at a minimum state what the error is. We certainly can't guess. Best is to copy the full error message, everything in red.

Réponses (1)

Guillaume
Guillaume le 30 Jan 2018
Modifié(e) : Guillaume le 30 Jan 2018
"Why there is error"
Most likely, because you called data_proc with less than 4 arguments. The error will happen if you call data_proc with, for example,
data_proc(0, 10, 2)
instead of
data_proc(0, 10, 2, 6)

Cette question est clôturée.

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by