필터 지우기
필터 지우기

How to read the .out file

조회 수: 28 (최근 30일)
Heqian Zhao
Heqian Zhao 2021년 11월 8일
댓글: Dyuman Joshi 2023년 7월 19일
I get the .out file from the Fluent. How to read and extract the data using matlab?
Example:
"inlet-velocity-rfile"
"Time Step" "inlet-velocity etc.."
("Time Step" "inlet-velocity" "flow-time")
0 19.99999993833623 0
1 20.07999993808957 0.001
2 20.15999993784293 0.002
3 20.23999993759627 0.003
4 20.31999993734961 0.004
5 20.39999993710296 0.005
6 20.47999993685632 0.006
7 20.55999993660965 0.007
8 20.63999993636299 0.008
9 20.71999993611634 0.009000000000000001
10 20.79999993586968 0.01
11 20.87999993562302 0.011
12 20.95999993537637 0.012
13 21.03999993512973 0.013
14 21.11999993488307 0.014
15 21.19999993463641 0.015
16 21.27999993438976 0.016
17 21.35999993414309 0.017
18 21.43999993389645 0.018
19 21.51999993364979 0.019
20 21.59999993340314 0.02
21 21.67999993315647 0.021
22 21.75999993290982 0.022
23 21.83999993266317 0.023

답변 (1개)

Yongjian Feng
Yongjian Feng 2021년 11월 8일
편집: Yongjian Feng 2021년 11월 8일
readmatrix can handle it.
m = readmatrix('your_file')
  댓글 수: 2
Federico Pelizza
Federico Pelizza 2023년 7월 19일
I tried this methodology, readmatrix does not seem to be able to read .out files.
I am writing just a simple code such as readmatrix('Filename'), so it could be read through some options that i do not know.
Dyuman Joshi
Dyuman Joshi 2023년 7월 19일
Try readtable or use the Import Data functionality available on the Home Tab of the toolstrip

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Text Files에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by