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

📄 ex5_2.m

📁 Advanced Engineering Mathematics using MATLAB by Harman, Dabney, Richert,书中全部源码
💻 M
字号:
% EX5_2.M Plot solution to ydot=1/(t-1)% for 3 initial values. y=ln|t-1|+c.c=[-10 0 6.9014];         % Define constant values t=[1.005:.1:10];          % Define t to avoid t=1m=length(t);n=length(c);y=zeros(m,n);             for I=1:3 y(:,I) =log(abs(t-1)') + c(I);endclf                       % Clear any figuresplot(t,y(:,1),t,y(:,2),t,y(:,3))xlabel('t')ylabel('y(t)')title('Solution of dy/dt=1/(t-1)')gridaxis([0,10,-20,20])       % Plot limits gtext('(t0,y0)=(2,-10)')  % Annotate with mouse clicks  gtext('(t0,y0)=(2,0)')gtext('(t0,y0)=(4,8)')%% Note: Using gtext command, the figure will be annotated where you click %   with the mouse (cursor). %	

⌨️ 快捷键说明

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