What does this commands mean?

10 ビュー (過去 30 日間)
Neha Salim
Neha Salim 2016 年 7 月 22 日
回答済み: Thorsten 2016 年 7 月 22 日
dataop=[u_bar v_bar w_bar t_bar uprime_sq_bar vprime_sq_bar wprime_sq_bar tprime_sq_bar ws u_star TKE MF SHF Z_L wind_dir u_var v_var w_var temp_var cd uw_bar vw_bar];
[R C]=size(dataop);
fprintf(fout_10m_half,'%d\t%d\t%d\t%.2f\t',str2double(FYR),str2double(FMTH),str2double(FDTE),str2double(FHR));
for l1=1:6:C
fprintf(fout_10m_half,'%.4f\t',dataop(l1));
end
fprintf(fout_10m_half,'\n');
  3 件のコメント
Neha Salim
Neha Salim 2016 年 7 月 22 日
編集済み: Azzi Abdelmalek 2016 年 7 月 22 日
what does this codes means?
l1=1:6:C ?
Azzi Abdelmalek
Azzi Abdelmalek 2016 年 7 月 22 日
Just try it
C=25
l1=1:6:C

サインインしてコメントする。

採用された回答

Thorsten
Thorsten 2016 年 7 月 22 日
It generates the numbers from 1 up to C, in steps of 6.

その他の回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 7 月 22 日
If you mean the fprintf function, you can find the documentation here: http://www.mathworks.com/help/matlab/ref/fprintf.html
  1 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2016 年 7 月 22 日
If you are new with Matlab, you need to read this http://www.mathworks.com/help/matlab/getting-started-with-matlab.html

サインインしてコメントする。

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by