Nobuhito Mori
Navigation :
開始行:
*Read/write data + Fourier analysis [#ided5637]
- Read the .mat data 'crf_wind.mat' and plot the first ro...
u is the wind speed data and the dimension is [m/s], the ...
# load
- Load the text data 'crf_wind.dat', plot the first row c...
# fopen, fscanf, fclose
Calculate the spectrum of -u(1,:) and plot it on the loga...
# logloglog
- Save the computed values in matlab format
# save
*Data [#qae49bf7]
- [[Text data>Home:files/education/crf_wind.dat]]
- [[Matlab binary data>Home:files/education/crf_wind.mat]]
Ref.
% Output format of crf_wind.dat
filename_tmp = strcat('filename_w','.dat')
fid = fopen( 'crf_wind.dat', 'w' )
fprintf( fid, '%5d %5d\n', nt, nz )
fprintf( fid, '%12.5e\n', dt )
fprintf( fid, '%12.5e', z(1:nz) )
fprintf( fid, '\n' );
for iz=1:nz
fprintf( fid, '%12.5e', u(iz,:) ); for iz=1:nz
fprintf( fid, '\n' );
end
fclose(fid);
終了行:
*Read/write data + Fourier analysis [#ided5637]
- Read the .mat data 'crf_wind.mat' and plot the first ro...
u is the wind speed data and the dimension is [m/s], the ...
# load
- Load the text data 'crf_wind.dat', plot the first row c...
# fopen, fscanf, fclose
Calculate the spectrum of -u(1,:) and plot it on the loga...
# logloglog
- Save the computed values in matlab format
# save
*Data [#qae49bf7]
- [[Text data>Home:files/education/crf_wind.dat]]
- [[Matlab binary data>Home:files/education/crf_wind.mat]]
Ref.
% Output format of crf_wind.dat
filename_tmp = strcat('filename_w','.dat')
fid = fopen( 'crf_wind.dat', 'w' )
fprintf( fid, '%5d %5d\n', nt, nz )
fprintf( fid, '%12.5e\n', dt )
fprintf( fid, '%12.5e', z(1:nz) )
fprintf( fid, '\n' );
for iz=1:nz
fprintf( fid, '%12.5e', u(iz,:) ); for iz=1:nz
fprintf( fid, '\n' );
end
fclose(fid);
ページ名:
MENU
INTRODUCTION
RESEARCH
EDUCATION
MEMO
COMPUTER
RESEARCH
ETC
LINK
最新の5件
2026-01-14
Publications/Journal Papers
2026-01-09
Introduction/CV in English
Introduction/CV in Japanese
2026-01-04
Publications/講演・セミナー等
2026-01-03
Review Papers
カスタム検索
Counter
Total : 0
Today : 0
Yesterday : 0
Edit Menu
[
新規
] [
ヘルプ
]
Site Search
AND
OR