I have compiled matlab file which displays large amount of numbers in an executable form as a console based application. I need to do further computation on the output of the executable in php. Is the output of the executable console based application in ASCII or numeric format?How can I convert the ASCII output in numeric format to do further computation on it in php?
I am using disp(variable) to display the output. The output is in the form.
(1,1) 0.1424
(2,1) 0.0117 (3,1) 0.0000 (4,1) 0.0000 (5,1) 0.0677 (6,1) 0.0000 (7,1) 0.5308 (8,1) 0.0077 (9,1) 0.0512 (10,1) 0.0118 (11,1) 0.0001 (12,1) 0.1764
(114,1) 0.4564 (203,1) 0.2962 (250,1) 0.2474
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
Columns 36 through 42
0.1537 0.0239 0.0154 0.0046 0.0121 0.0700 0.0171
Columns 43 through 49
0.0304 0.0551 0.2174 0.2594 0.1179 0.0355 0.0103
Columns 50 through 56
0.0084 0.0188 0.0025 0.0019 0.0219 0.1391 0.1527
Columns 57 through 63
0.0471 0.0313 0.0170 0.0557 0.0016 0.0044 0.0184
Columns 64 through 70
0.0194 0.2053 0.3206 0.1394 0.0208 0.0332 0.0658
Columns 71 through 77
0.0193 0.0073 0.0026 0.0223 0.1996 0.3017 0.0207
Columns 78 through 84
0.0168 0.0076 0.0038 0.1666 0.0278 0.0167 0.1070
Columns 85 through 91
0.3269 0.2546 0.0270 0.0026 0.0053 0.0079 0.0132
Columns 92 through 98
0.0059 0.0141 0.0205 0.1327 0.2656 0.0300 0.0049
Columns 99 through 105
0.0066 0.0228 0 0.0253 0.0622 0.0107 0.0792
Columns 106 through 112
0.0754 0.0157 0 0.0097 0.0229 0.1128 0.0549