如何用matlab读取txt文件中的数据,并画图

2024年10月30日 06:03
有1个网友回答
网友(1):

s='date.txt';
fidin=fopen(s);
data=fscanf(fidin,'%f');

plot(1:100,data)