created function
This commit is contained in:
+5
-17
@@ -1,27 +1,15 @@
|
||||
clear;
|
||||
clc;
|
||||
|
||||
prompt = 'Initializing exporting';
|
||||
str = input(prompt,'s');
|
||||
prompt = 'Press "0" for front or "1" for rear: ';
|
||||
side = input(prompt, 's');
|
||||
|
||||
if str == F
|
||||
content = who('-file', 'M22H_FrontSuspension_Data.mat');
|
||||
filename = 'FrontSuspension_Exported.xlsx';
|
||||
elseif str == R
|
||||
content = who('-file', 'M22H_RearSuspension_Data.mat');
|
||||
filename = 'RearSuspension_Exported.xlsx';
|
||||
selectSide(side);
|
||||
|
||||
fprintf('Initializing exporting process');
|
||||
|
||||
for i=1:length(content)
|
||||
writetable(content, filename, 'Sheet', 'Front', 'WriteVariableNames', true);
|
||||
|
||||
quit = input('s');
|
||||
writetable(content, filename, 'Sheet', sheetName, 'WriteVariableNames', true);
|
||||
end;
|
||||
|
||||
fprintf('Finished exporting')
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user