Skip to content

jesee030/matlabHousework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

matlabHousework

1

.1)img

2)imgimg

3)img

4)image-20210306114854817

5)img

6)image-20210306114908201

7)img

2

function[meter, hight] = ballBounce(hight_q,times)
hight = hight_q/2^times;
meter = 0;
if (times > 1)
    meter = meter + hight_q;
end
times=times-1;
while(times-2 > 0)
    meter=meter + 2*(hight_q/2);
    hight_q = hight_q / 2;
    times=times-2;
end
meter=meter + hight_q / 2;
end

d73dcf2fd9de2947b763fecea44cc88

3

x=[-2*pi:0.1*pi:2*pi];
y=cos(tan(pi*x));
plot(x,y)
fplot(@(x)cos(tan(pi*x)))

image-20210306114656221

image-20210306114717943

4

x=linspace(-100,100);
y1=x.^2;
y2=x.^3;
y3=x.^4;
y4=x.^5;
plot(x,y1,x,y2,x,y3,x,y4);
legend({'y1=x.^2','y2=x.^3','y3=x.^4','y4=x.^5'},'Location','southwest')

image-20210306114500591

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published