You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
622 B
18 lines
622 B
function res = recreate_computeddata_table(data) |
|
csvname = [tempname() '.csv']; |
|
writetable(data(1,:), csvname); |
|
|
|
colclasses = ''; |
|
for i = 1:width(data) |
|
colclasses = [colclasses newline() strjoin([data.Properties.VariableNames(i), class(data{1,i})])]; %#ok<AGROW> |
|
end |
|
|
|
import matlab.net.http.* |
|
import matlab.net.http.io.* |
|
fp = FileProvider(csvname); |
|
mfp = MultipartFormProvider('csv', fp, 'classes', StringProvider(colclasses)); |
|
req = RequestMessage('post', HeaderField('Auth', 'Qnb7jfeGZM'), mfp); |
|
res = req.send('https://driver-observer.thi.de/recreate_computeddata_table.php'); |
|
|
|
delete(csvname); |
|
end |