The fastest way to read (interpolate) velocity data at certain positions?

1 回表示 (過去 30 日間)
Xinchen Zhang
Xinchen Zhang 2020 年 8 月 15 日
回答済み: Prabhanjan Mentla 2020 年 8 月 18 日
Let's say the 'wind' matrix. I would like to read the streamwise velocity ('u') at some certain positions. For example, how to read the velocity data at the two points of (x,y,z)=(100,20,5) and (110, 25,10)?
Any help would be much appreciated.

回答 (1 件)

Prabhanjan Mentla
Prabhanjan Mentla 2020 年 8 月 18 日
Hi,
I assume, you want to get the data at certain points in the 3D matrix ‘wind’.
To get this data, consider the below code:
Data=Wind(100,20,5); % value from 100th row,20thcolumn and 5th page of Wind.
Hope this helps.

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by