⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 r8mat_write.m

📁 F90_MATLAB作为演示fortran90和matlab相互作用的例子:)
💻 M
字号:
function r8mat_write ( file_name, m, n, a )%% R8MAT_WRITE writes an R8MAT to a file.%%  Modified:%%    02 November 2007%%  Author:%%    John Burkardt%%  Parameters:%%    Input, string FILE_NAME is the name of the file to read.%%    Input, integer M, N, the order of the matrix.%%    Input, real A(M,N), the matrix.%  file_unit = fopen ( file_name, 'w' );  for i = 1 : m    for j = 1 : n      fprintf ( file_unit, '  %f', a(i,j) );    end    fprintf ( file_unit, '\n' );  end  fclose ( file_unit );

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -