how to plot velocity profile

조회 수: 1 (최근 30일)
Bhargavkrishna Kondreddy
Bhargavkrishna Kondreddy 2016년 11월 14일
답변: KSSV 2016년 11월 14일
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
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
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

카테고리

Help CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by