% matlab script to illustrate stiffness % using simple flame propagation model close all clear all % define the right-hand side of the ODE F = inline('y^2 - y^3','t','y'); delta = 0.01; % not stiff tic ode23(F,[0 2/delta],delta); toc disp('Press any…
http://blogs.mathworks.com/loren/2007/03/01/creating-sparse-finite-element-matrices-in-matlab/ Loren on the Art of MATLAB March 1st, 2007 Creating Sparse Finite-Element Matrices in MATLAB I'm pleased to introduce Tim Davis as this week's guest blogge…
% Matlab script to illustrate the secant method % to solve a nonlinear equation % this particular script finds the square root of a number M % (input by the user) % note that the function we are trying to zero is f(x) = x^2 - M. % this function is ha…
Matlab画图设置线宽和字号 既然这么多人来这里看过,我就多做点注释,方便大家参考. 下边这段代码不需要特别设置,只需要在plot语句之后插入即可. %plot your figure before %%%%%%%%%%%%%%%%%%%%% set(gcf,'Units','centimeters','Position',[10 10 7 5]);%设置图片大小为7cm×5cm%get hanlde to current axis返回当前图形的当前坐标轴的句柄,%(the first ele…
Matlab函数--awgn awgn 将白色高斯噪声添加到信号中 语法 y = awgn(x,snr) y = awgn(x,snr,sigpower) y = awgn(x,snr,'measured') y = awgn(x,snr,sigpower,state) y = awgn(x,snr,'measured',state) y = awgn(...,powertype) 描述 y = awgn(x,snr)将白高斯噪声添加到向量信号x中.标量snr指定了每一个采样点信号…
% Matlab script to illustrate Newton's method % to solve a nonlinear equation % this particular script finds the square root of a number M % (input by the user) % note that the function we are trying to zero is f(x) = x^2 - M. % its derivative is f'(…
Matlab流体后处理中的奇淫巧术总结 主要参考\demos\volvec.m示例 1.等值面绘制 %% Isosurface of MRI Data cla load mri D = squeeze(D); [x, y, z, D] = subvolume(D, [nan nan nan nan nan 4]); p = patch(isosurface(x,y,z,D, 5), 'FaceColor', 'red', 'EdgeColor', 'none'); patch(isocaps(x…