matlab积分使用

clc; %清屏
clear; %清除变量
close all;  %关闭
syms x;
f(x) = x;
df = int(f(x),x);%求不定积分
figure;
subplot(1,2,1); 
ezplot(df);
%{
int(F,var,a,b) 函数F对变量var求积分,下标为a,上标为b,
                不要a,b表示不定积分
%}

%二重积分
df2 = int(int(f(x),x),x);
subplot(1,2,2);
ezplot(df2);

 

posted @ 2016-12-05 21:32  理舞  阅读(681)  评论(0编辑  收藏  举报