how to pass the variable to the categoryNames in GPU coder?

In the main.cu file, I defined a array below. I wanted to pass a variable index to replace 0. Can you suggest how to do it?
coder::categorical out;
coder::categorical* labels_data;
labels_data = &out;
int *indx = (int*)calloc(sizeof(int),3);
targetFunction(inImg.data, &out,indx);
emxArray_char_T_1x6 label = labels_data->categoryNames.data[0].f1;

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGet Started with GPU Coder についてさらに検索

製品

リリース

R2022a

質問済み:

2022 年 6 月 27 日

編集済み:

2022 年 6 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by