fix exporting bugs

exporting is fixed, still only the variable names (and not the values) are being exported on the .xslx
This commit is contained in:
Erick
2022-01-29 00:42:31 +01:00
parent 3a976e9278
commit 4cbbc1b87b
5 changed files with 30 additions and 15 deletions
+4 -6
View File
@@ -1,17 +1,15 @@
function [content, fileName, sheetName] = selectSide(input);
function [frontrear, fileName, sheetName] = selectSide(input);
%input 1 is front, 2 is rear
if rem(input, 2) == 0
content = who('-file', 'M22H_FrontSuspension_Data.mat');
frontrear = 'front';
fileName = 'FrontSuspension_Exported.xlsx';
sheetName = 'Front';
elseif rem(input, 2) ~= 0
content = who('-file', 'M22H_RearSuspension_Data.mat');
frontrear = 'rear';
fileName = 'RearSuspension_Exported.xlsx';
sheetName = 'Rear';
else
fprintf = 'An error occured!';
end;
end;