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 件のコメント

Walter Roberson
Walter Roberson 2018 年 4 月 30 日
Please do not close questions that have an answer

サインインしてコメントする。

回答 (1 件)

KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 4 月 19 日
編集済み: KALYAN ACHARJYA 2018 年 4 月 19 日

0 投票

 %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 ExchangeResizing and Reshaping Matrices についてさらに検索

タグ

タグが未入力です。

質問済み:

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