Files
suspension-simulation-data/selectSide.m
T
Erick 4cbbc1b87b fix exporting bugs
exporting is fixed, still only the variable names (and not the values) are being exported on the .xslx
2022-01-29 00:42:31 +01:00

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;