clear all;clc;close all;
% 1.integral计算定积分
% 计算函数 f(x) = e^{-x^2} \cdot \log(x)^2 在[0,inf]区间上的积分
myfun = @(x) exp(-x.^2).*log(x).^2;
q = integral(myfun,0,Inf)
% 计算函数 f(x) =1./(x.^3-2*x-c) 在[0,2]区间上的积分,带参数c
myfun = @(x,c) 1./(x.^3-2*x-c);
q = integral(@(x) myfun(x,5),0,2)
% 2.integral2计算二重积分
% 计算函数 f(x) = \int_{0}^{1} \int_{0}^{1}xydxdy 在[0,1]区间上的二重积分
myfun=@(x,y) x.*y;
q = integral2(myfun, 0, 1, 0, 1)
% 3.integral3计算三重积分
% 计算函数 f(x) = \int_{0}^{1}\int_{0}^{1} \int_{0}^{1}xydxdydz 在[0,1]区间上的三重积分
myfun=@(x,y,z) x.*y.*z;
q = integral3(myfun, 0, 1, 0, 1, 0, 1)
% 4.int符号积分
syms x;
F = int(sin(x), x)
F_def = int(sin(x), x, 0, pi)
没有合适的资源?快使用搜索试试~ 我知道了~
MATLAB中的各个积分函数及其用法
![preview](https://csdnimg.cn/release/downloadcmsfe/public/img/white-bg.ca8570fa.png)
共2个文件
m:1个
docx:1个
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
需积分: 1 1 下载量 154 浏览量
2024-02-17
13:11:09
上传
评论
收藏 19KB ZIP 举报
温馨提示
MATLAB中的各个积分函数及其用法
资源推荐
资源详情
资源评论
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![mp4](https://img-home.csdnimg.cn/images/20210720083504.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/DOCX.png)
共 2 条
- 1
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/af8d0862e3434ba198f9778b6c9340d4_corn1949.jpg!1)
![avatar-vip](https://csdnimg.cn/release/downloadcmsfe/public/img/user-vip.1c89f3c5.png)
MATLAB代码顾问
- 粉丝: 1w+
- 资源: 115
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)