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:
+4
-6
@@ -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;
|
||||
Reference in New Issue
Block a user