4cbbc1b87b
exporting is fixed, still only the variable names (and not the values) are being exported on the .xslx
15 lines
383 B
Matlab
15 lines
383 B
Matlab
function [frontrear, fileName, sheetName] = selectSide(input);
|
|
|
|
%input 1 is front, 2 is rear
|
|
|
|
if rem(input, 2) == 0
|
|
frontrear = 'front';
|
|
fileName = 'FrontSuspension_Exported.xlsx';
|
|
sheetName = 'Front';
|
|
elseif rem(input, 2) ~= 0
|
|
frontrear = 'rear';
|
|
fileName = 'RearSuspension_Exported.xlsx';
|
|
sheetName = 'Rear';
|
|
else
|
|
fprintf = 'An error occured!';
|
|
end; |