created function
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user