Getting Not Enough Input Arguments error

I am trying to re-create a Matlab script file, from a printout of code that works fine in another location. this is the line of code that is giving me errors at the moment:
Entity(1,ESIDCol) = cellstr(HDF5Info.Datasets(a).Attributes(strcmp(AttributeIndex,ESIDString)).Value);
could it be that the data file, which is an hdf5 file, so i cant really open it to view the data without code, just isnt passing the needed data and there is nothing wrong with the code? Any help is appreciated.

3 comentarios

Matt J
Matt J el 22 de Jun. de 2023
this is the line of code that is giving me errors at the moment:
You should copy/paste those errors into your post.
Mike
Mike el 26 de Jun. de 2023
Editada: Mike el 26 de Jun. de 2023
As per requested above here is the full error text:
Not enough input arguments.
Error in cellstr (line 20)
if ischar(s)
Error in hackalope_rebuild (line 270)
EntityCrap(1,ESIDCol) =
cellstr(HDF5Info.Datasets(a).Attributes(strcmp(AttributeIndex,ESIDString)).Value);
One of the problems I am facing is that I am using a python script to generate false hdf5 data, and I am unsure whether or not the data is correct, or the same structure as the data we recieve from our vendors. Could this error indicate that the hdf5 file I am pointing to does not contain the data/fields nessecary to run properly with the code I currently have?
Matt J
Matt J el 26 de Jun. de 2023
See my answer below.

Iniciar sesión para comentar.

Respuestas (1)

Matt J
Matt J el 22 de Jun. de 2023
Editada: Matt J el 22 de Jun. de 2023

0 votos

My guess is that strcmp(AttributeIndex,ESIDString) is returning false and therefore no arguments are being given as input to cellstr().

Categorías

Más información sobre Variables en Centro de ayuda y File Exchange.

Productos

Versión

R2019b

Preguntada:

el 22 de Jun. de 2023

Comentada:

el 26 de Jun. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by