how to plot velocity profile
1 次查看(过去 30 天)
显示 更早的评论
i have a multiple .txt files which contains several columns of velocity in xand y direction. I want to plot a velocity profile by importing all .txt files.
1 个评论
Frederico Marc
2016-11-14
You can use the "Import Data From file". You will import the data to the worskpace, then you can do whatever you want.
If you have a .m file, I think it is easier to use the importdata command:
importdata('myfile.txt');
Use the Help to read further about this command.
回答(1 个)
KSSV
2016-11-14
d = dir('*.txt');
nfiles = length(d);
for k = 1:nfiles
data= importdata(d(k).name);
%%%%%
% quiver(x,y,u,v)
% do what you want
end
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!