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

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

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 4월 19일
편집: KALYAN ACHARJYA 2018년 4월 19일
 %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

KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 4월 19일
편집: KALYAN ACHARJYA 2018년 4월 19일
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 2018년 4월 19일
편집: KALYAN ACHARJYA 2019년 11월 20일
Change the name of variable, avoid case as variable variable.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

질문:

2018년 4월 19일

편집:

2019년 11월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by