Matlab saves data to other files mainly through the command save, examples are given below

clc
close all
clear
x = 1:100;
y = x.^2;
data = [x' y'];
save data.txt -ascii data
save data.mat data
xlswrite('data.xls',data,1,'D1')
Copy the code

 

Data are saved as TXT Mat and Excel files respectively

1 in XLSWrite stands for Sheet1 and D1 stands for data saved from D1 cells

 

PS: customized development needs, you can contact QQ: 2472853871

Taobao link: item.taobao.com/item.htm?sp…

Provide 1V1 matlab Simulink training, teaching, communication and other consulting services, especially good at automotive control, signal processing, mathematical modeling, motor fields