"Unrecognized function or variable 'createCOTable'" error happens while Text Analytics Toolbox is installed

1 回表示 (過去 30 日間)
When I try the following code to get a Co-table and a Co-network, it shows "Unrecognized function or variable 'createCOTable'" while the Text Analytis Toolbox is successfully installed. Can anyone gently indicate anything to be fixed?
FYI: This group of codes is a part of this exercise on YouTube, hosted by MATLAB Japan.
-- Codes I wrote
>> % nKeywords = ["word A","word B","word C","word D","word E"];
nKeywords = 5;
span = 10;
nCooC = 5;
mode = 'center';
COTable = createCOTable(docs,span, nKeywords, nCooC, mode);
CONetwork = createCONetwork(COTable,'T');
Unrecognized function or variable 'createCOTable'.

採用された回答

Abderrahim. B
Abderrahim. B 2023 年 9 月 25 日
Hi!
Error message says it all. createCOTable is not a recognized function or variable to MATLAB, or maybe a user defined function that you have somehwere but not in the current folder or MATLAB search path. Also the error can be interpreted as the function is not a MATLAB build-in function.
Try to find the code for the function createCOTable and add it to your current folder or to matlab search path so you can call it.
If you are trying to create a table, you can use table or timetable it depends on your application and goal.
Hope this helps
Abderrahim
  2 件のコメント
俊介 伊澤
俊介 伊澤 2023 年 9 月 25 日
Hi Abderrahim,
Thank you for the reply. I understood you well and I found this document so I could run the code of createCOTable! In the 1st place, I didn't know a function defined by 3rd party users work on MATLAB. Thanks again!
Kind regards,
Shunsuke
Abderrahim. B
Abderrahim. B 2023 年 9 月 25 日
My pleasure!
Glad that my answer helped you fix the error.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by