18 lines
456 B
Matlab
18 lines
456 B
Matlab
function [content, filename, sheetName] = selectSide(input);
|
|
|
|
%input 1 is front, 2 is rear
|
|
|
|
if rem(input, 2) == 0
|
|
content = who('-file', 'M22H_FrontSuspension_Data.mat');
|
|
filename = 'FrontSuspension_Exported.xlsx';
|
|
sheetName = 'Front';
|
|
elseif rem(input, 2) ~= 0
|
|
content = who('-file', 'M22H_RearSuspension_Data.mat');
|
|
filename = 'RearSuspension_Exported.xlsx';
|
|
sheetName = 'Rear';
|
|
else
|
|
fprintf = 'An error occured!';
|
|
end;
|
|
|
|
|