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

2024-10-30 06:03:43
推荐回答(1个)
回答1:

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

plot(1:100,data)