remove temp file
This commit is contained in:
+3
-3
@@ -1,12 +1,12 @@
|
|||||||
clear;
|
clear;
|
||||||
clc;
|
clc;
|
||||||
|
|
||||||
prompt = 'Press "0" for front or "1" for rear: ';
|
prompt = 'Press "1" for front or "2" for rear: ';
|
||||||
side = input(prompt, 's');
|
side = input(prompt, 's');
|
||||||
|
|
||||||
selectSide(side);
|
[content, selectSide(side);
|
||||||
|
|
||||||
fprintf('Initializing exporting process');
|
fprintf('Initializing exporting process \n');
|
||||||
|
|
||||||
for i=1:length(content)
|
for i=1:length(content)
|
||||||
writetable(content, filename, 'Sheet', sheetName, 'WriteVariableNames', true);
|
writetable(content, filename, 'Sheet', sheetName, 'WriteVariableNames', true);
|
||||||
|
|||||||
+3
-3
@@ -4,12 +4,12 @@ clc;
|
|||||||
prompt = 'Press "1" for front or "2" for rear: ';
|
prompt = 'Press "1" for front or "2" for rear: ';
|
||||||
side = input(prompt, 's');
|
side = input(prompt, 's');
|
||||||
|
|
||||||
selectSide(side);
|
[content, fileName, sheetName] = selectSide(side);
|
||||||
|
|
||||||
fprintf('Initializing exporting process \n');
|
fprintf('Initializing exporting process \n');
|
||||||
|
|
||||||
for i=1:length(content)
|
for i=1:length(content)
|
||||||
writetable(content, filename, 'Sheet', sheetName, 'WriteVariableNames', true);
|
writetable(content, fileName, 'Sheet', sheetName, 'WriteVariableNames', true);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
fprintf('Finished exporting')
|
fprintf('Finished exporting')
|
||||||
|
|||||||
+3
-3
@@ -1,14 +1,14 @@
|
|||||||
function [content, filename, sheetName] = selectSide(input);
|
function [content, fileName, sheetName] = selectSide(input);
|
||||||
|
|
||||||
%input 1 is front, 2 is rear
|
%input 1 is front, 2 is rear
|
||||||
|
|
||||||
if rem(input, 2) == 0
|
if rem(input, 2) == 0
|
||||||
content = who('-file', 'M22H_FrontSuspension_Data.mat');
|
content = who('-file', 'M22H_FrontSuspension_Data.mat');
|
||||||
filename = 'FrontSuspension_Exported.xlsx';
|
fileName = 'FrontSuspension_Exported.xlsx';
|
||||||
sheetName = 'Front';
|
sheetName = 'Front';
|
||||||
elseif rem(input, 2) ~= 0
|
elseif rem(input, 2) ~= 0
|
||||||
content = who('-file', 'M22H_RearSuspension_Data.mat');
|
content = who('-file', 'M22H_RearSuspension_Data.mat');
|
||||||
filename = 'RearSuspension_Exported.xlsx';
|
fileName = 'RearSuspension_Exported.xlsx';
|
||||||
sheetName = 'Rear';
|
sheetName = 'Rear';
|
||||||
else
|
else
|
||||||
fprintf = 'An error occured!';
|
fprintf = 'An error occured!';
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user