Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

PLOTTING RANDOM POINTS IN A FIGURE IN MATLAB Hello! We have a poorly constructed

ID: 3868686 • Letter: P

Question

PLOTTING RANDOM POINTS IN A FIGURE IN MATLAB

Hello! We have a poorly constructed baseball bat figure in matlaband we would like to know how to plot 100 random points inside the figure given.

here is our current matlab code

[x,y,z]=sphere;
surf(x,y,z);
alpha(0.5);
hold on
[x1,y1,z1]=cylinder(0.8);
surf(x1,y1,z1*6+0.55);
hold on
[x,y,z]=sphere;
surf(x*0.8,y*0.8,z*0.8+6.55);
alpha(0.5)
axis equal;

x2=rand(100,1);
y2=rand(100,1);
z2=rand(100,1);
scatter3(x2,y2,z2, 'o','r','filled');

CODE SMULINK Command Window New to MATLAB? See resources for Getting Started. >>clear >> [x,y,z]=sphere; surf (x, y, z); alpha (0.5); hold on [x1,yl,z1]-cylinder (0.8); surf (x1,yl,zl*6+0.55) hold orn [x, y, 2] =sphere; surf (x*0.8,y*0.8,z*0.8+6.55); alpha (0.5) axis equal; 4 3 x2-rand (100,1); y2-rand (100,1): z2-rand (100,1); scatter3 (x2,y2,z2, 'o,'r,'filled) 2

Explanation / Answer

a fly ball hit especially for practice fielding by a player who tosses a ball in the air and hits it as it comes down

and a Fungo bat is;

a long thin bat used for hitting fungoes
A fungo bat can be almost anything, even a broomstick. I see a lot of coaches using either wood bats, or softball bats. One guy uses an old aluminum softball bat about 40" long taped up all they way down the length. It's really what the coaches feel comfortable hittng with that makes them different, but most are as the dictionary states, long and thin.

A "Fungo" is a fly ball hit by a player who throws the ball up to himself usually using what is called a "fungo bat". A fungo bat is a specially designed bat used by baseball and softball coaches for practice purposes. It is not designed to hit thrown or pitched balls but rather is intended to hit balls tossed in the air. Typical fungo bats are 35-37 inches long and weigh 17-22 ounces (while full-size baseball bats can weigh 30 ounces or more). Coaches hit many balls during fielding practice, and the light weight allows the coach to hit balls repeatedly with high accuracy.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote