Import excel data - generate function option

8 visualizaciones (últimos 30 días)
Manuel Flores
Manuel Flores el 12 de Ag. de 2018
Respondida: Walter Roberson el 12 de Ag. de 2018
Hi,
I have an excel file that I have to import using the 'Generate Function' option, however I am having trouble naming the file as I keep getting errors.
I have changed the name on the first line how the example mentions but I still get the red errors. Can anyone help me or point me out to what I'm doing wrong please. Thanks.

Respuestas (1)

Walter Roberson
Walter Roberson el 12 de Ag. de 2018
function lines can only name variables or use ~ to skip variables.
Think for a moment: suppose you were able to pass a string in the first position, then how would the code know which variable name the string was supposed to be associated with?

Categorías

Más información sobre Data Import from MATLAB en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by