用matlab重复计算积分并输出,A=1.78*int(sqrt(1-y^2/0.6^2),y,-0.6,h-0.6),h=0.01:0.01:1.2
如题,想得到A和h的对应结果列表,求程序代码
得到答案了
clc
clear all
close all
syms y;
for i=1:120
h=i/100;
A(i,1)=h;
A(i,2)=double(1.78*int(sqrt(1-y^2/0.6^2),-0.6,h-0.6));
end
A