コンソール出力をphpの配列に変換して、コンソール出力データでさらに計算を行うにはどうすればよいですか?
I have compile my matlab program in executable console based application. I want to use the output of the exe in php for computation without saving the output in a file I want to save it in an array. The matlab code is as follows
[im_data,color_names,color_weight_vec_coarse,color_weight_vec_fine,shoe_grad_pyramid_shape,...
shoe_grad_pyramid_texture,shoe_aspect_ratio,time_elapsed] = single_shoe_description_seq(im,...
plot_option,save_option,canny_thresholds,phog_params,save_name_list,color_file_mat,num_clusters_emd);
disp(im_data)
The output is as follows:
Columns 1 through 7
0.1373 0.0414 0.0541 0.1342 0.5606 0.5293 0.1652
Columns 8 through 14
0.0341 0.0396 0.0633 0.0778 0.0289 0.0654 0.0752
Columns 15 through 21
0.3055 0.4602 0.0631 0.0360 0.0188 0.0497 0.0228
Columns 22 through 28
0.0294 0.0373 0.0734 0.3148 0.1703 0.0294 0.0057
Columns 29 through 35
0.0263 0.0382 0.0977 0.0396 0.1056 0.0781 0.1085