Borrar filtros
Borrar filtros

I am getting an error "Undefined function or variable 'Dictionary'".

13 visualizaciones (últimos 30 días)
kitty varghese
kitty varghese el 19 de Abr. de 2018
Editada: KALYAN ACHARJYA el 20 de Nov. de 2019
I have used switch case in my function such that for training (part1 ) case 1 will be executed and for testing (part 2) case 2 will be executed. However, the variable Dictionary created in case 1 will be used to case 2 also. The function which I have wrote is

Respuestas (1)

KALYAN ACHARJYA
KALYAN ACHARJYA el 19 de Abr. de 2018
Editada: KALYAN ACHARJYA el 19 de Abr. de 2018
 %What I understood: Your code
Case 1:
Switch statement;
dictionary variable;
Case2:
execute;
%Gives error
>>Suggested Modification as follows
Case 1:
dictionary variable; 
Switch statement;
Case2:
execute;
  2 comentarios
KALYAN ACHARJYA
KALYAN ACHARJYA el 19 de Abr. de 2018
Editada: KALYAN ACHARJYA el 19 de Abr. de 2018
Previously you accepted the answer. I hope your question is answered Pls share your code. Above is not exact code, just way steps how you should follow.
KALYAN ACHARJYA
KALYAN ACHARJYA el 19 de Abr. de 2018
Editada: KALYAN ACHARJYA el 20 de Nov. de 2019
Change the name of variable, avoid case as variable variable.

Iniciar sesión para comentar.

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!

Translated by