フィルターのクリア

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 Center および File ExchangeData Import and Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by