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

📄 show.m

📁 this fem program is written in matlab to simulate a room temperature of a museum under the source of
💻 M
字号:
function show ( elements3, coordinates, U, nt, t_start, t_final,ntt,dt )


%plot temprature profile of the room with time
  umin = min ( min ( U ) );
  umax = max ( max ( U ) );
  t_final1 = ntt*dt
  for i = 0 : ntt
%
%  Print the current time T to the command window, and in the plot title.
%
    t = ( ( ntt - i     ) * t_start   ...
        + (      i     ) * t_final1 ) ...
        /   ntt;

    fprintf ( 1, 'T = %f\n', t );
%
%  TRISURF will display surface plots of X, Y, Z data 
%  that has been grouped into triangles.
%
    picture =  trisurf( elements3, coordinates(:,1), coordinates(:,2), ...
      U(:,i+1)', 'EdgeColor', 'interp', 'FaceColor', 'interp' );%trisurf
%
%  We want all the plots to use the same Z scale.
%
    axis ( [0 1 0 1 umin umax] );
%
%  Write some labels on the plot.
%

    xlabel ( 'X axis' );
    ylabel ( 'Y axis' );
    s = sprintf ( 'T = %8f', t );
    title ( s );
 
pause(0.05)
    getframe;


  end

⌨️ 快捷键说明

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