I'm classification on two images and I want to store the returned string values in an array. function returns a string to be displayed on the screen as the return value and this array is a 1×1 cell matrix. how do I hold all return values in a single array and print them on the screen?
img = imread('aaa.jpg');[labelIdx, scores] = predict(categoryClassifier, img);% Display the string label
categoryClassifier.Labels(labelIdx)img1 = imread('rr.jpg');[labelIdx, scores1] = predict(categoryClassifier, img1);% Display the string labelx=categoryClassifier.Labels(labelIdx)
and this is output:
ans =
cell 'airplanes'
x =
cell 'airplanes'
workspace looks like this I have two separate matriX BUT I do not want it how can i hold the "airplane" strings in same matrix?
Best Answer