how to pass the variable to the categoryNames in GPU coder?
조회 수: 2 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with GPU Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!