how to plot velocity profile

1 Ansicht (letzte 30 Tage)
Bhargavkrishna Kondreddy
Bhargavkrishna Kondreddy am 14 Nov. 2016
Beantwortet: KSSV am 14 Nov. 2016
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 Kommentar
Frederico Marc
Frederico Marc am 14 Nov. 2016
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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

KSSV
KSSV am 14 Nov. 2016
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

Kategorien

Mehr zu Data Import and Analysis finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by