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!
