• 大小: 12.04MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-22
  • 语言: Matlab
  • 标签: MATLAB  

资源简介

《面向计算科学与工程的Matlab编程》一书的源码,老外写的书就是不一样,十分值得学习。

资源截图

代码片段和文件信息

% script Eg4_1
% Plots the function f(x) = sin(5x)*exp(-x/2)/(1 + x^2) across [-23].

L = -2;  % Left endpoint
R =  3;  % Right endpoint
N = 200; % Number of sample points
% Obtain the vector of x-values and f-values...
x = linspace(LRN);
y = sin(5*x) .* exp(-x/2) ./ (1 + x.^2);
% Plot and label...
plot(xy[L R][0 0]‘:‘)
title(‘The function f(x) = sin(5x) * exp(-x/2) / (1 + x^2)‘)
ylabel(‘y = f(x)‘)
xlabel(‘x‘)

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2010-01-14 21:01  InsightData\12_4\
     文件     1642731  2010-01-14 20:58  InsightData\12_4\Cornell_Clock_Gray.jpg
     文件     9582749  2009-06-08 15:43  InsightData\12_4\Cornell_Clock.JPG
     目录           0  2010-01-14 21:02  InsightData\13_1\
     文件      159992  2008-09-23 03:24  InsightData\13_1\BigBen.wav
     目录           0  2010-01-14 19:43  InsightData\11_1\
     文件        4237  2008-08-08 10:34  InsightData\11_1\Sydney.dat
     文件        4240  2008-08-08 10:34  InsightData\11_1\Detroit.dat
     文件        4239  2008-08-08 10:34  InsightData\11_1\Cairo.dat
     文件       74935  2009-01-17 19:38  InsightData\11_1\SunriseSunsetData.zip
     文件        4241  2008-08-08 10:34  InsightData\11_1\Honolulu.dat
     文件        4238  2008-08-08 10:34  InsightData\11_1\Houston.dat
     文件        4238  2008-08-08 10:34  InsightData\11_1\Chicago.dat
     文件        4237  2008-08-08 10:34  InsightData\11_1\Boston.dat
     文件        4237  2008-08-08 10:34  InsightData\11_1\Moscow.dat
     文件        4238  2008-08-08 10:34  InsightData\11_1\Teheran.dat
     文件        4239  2008-08-08 10:34  InsightData\11_1\Bogata.dat
     文件        4245  2008-08-08 10:34  InsightData\11_1\RiodeJaneiro.dat
     文件        4243  2008-08-08 10:34  InsightData\11_1\Baltimore.dat
     文件        4243  2008-08-08 10:34  InsightData\11_1\Pittsburgh.dat
     文件        4239  2008-08-08 10:34  InsightData\11_1\Athens.dat
     文件        4237  2008-08-08 10:34  InsightData\11_1\Denver.dat
     文件        4240  2008-08-08 10:34  InsightData\11_1\Ithaca.dat
     文件        4238  2008-08-08 10:34  InsightData\11_1\Atlanta.dat
     文件        4238  2008-08-08 10:34  InsightData\11_1\Phoenix.dat
     文件        4242  2008-08-08 10:34  InsightData\11_1\Milwaukee.dat
     文件        4236  2008-08-08 10:34  InsightData\11_1\Tokyo.dat
     文件        4238  2008-08-08 10:34  InsightData\11_1\Miami.dat
     文件        4236  2008-08-08 10:34  InsightData\11_1\Tampa.dat
     文件        4240  2008-08-08 10:34  InsightData\11_1\Beijing.dat
     文件        4240  2008-08-08 10:34  InsightData\11_1\Cleveland.dat
............此处省略211个文件信息

评论

共有 条评论