"I want to call the master excel file into matlab, read/run the data in each sheet and save the workspace of each sheet in a specific folder"
sheets = sheetnames('C:\Users\User\Data.xlsx')
for ii = 1:length(sheets)
data{1} = xlsread('C:\Users\User\Data.xlsx',['Sheet'num2str(ii)])
save data
mkdir(['Vehicle' num2str(ii)])
movefile('data',['Vehicle'num2str(ii)]);
clear data
end
It is not clear how you want the plot part. Do you want to save the plots, create new plots for each vehicle , overwrite or hold on? Whatever be the case, now that you have the data in workspace, extract the relevant data and plot according to your requirement.
2 Comments
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/495729-hi-i-want-to-automate-a-process-which-consists-of-3-steps-1-read-the-data-from-excel-file-and-ext#comment_776462
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/495729-hi-i-want-to-automate-a-process-which-consists-of-3-steps-1-read-the-data-from-excel-file-and-ext#comment_776462
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/495729-hi-i-want-to-automate-a-process-which-consists-of-3-steps-1-read-the-data-from-excel-file-and-ext#comment_776475
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/495729-hi-i-want-to-automate-a-process-which-consists-of-3-steps-1-read-the-data-from-excel-file-and-ext#comment_776475
Sign in to comment.