Question

MATLAB QUESTION !!! PLEASE USE MATLAB FOR BOTH QUESTIONS!!! THANKS

1) Find the volume of a cone if the radius 13 meters and height is 22 meters. πη2h V=- 3 2) Find the gamma constant for objec

0 0
Add a comment Improve this question Transcribed image text
Answer #1


% Matlab code to calculate Volume of the cone

r = 13; % radius of the cone
h = 22; % height of the cone

v = (pi*r*r*h)/3 % Volume of the cone

% OUTPUT : v = 3893.5

% Matlab code to find gamma constant

V = [2.9,2.6,1.7,2.1,3,1.01,2.36]* 10^8
C = [3,3.1,2.9]*10^8

for i = 1:length(C)

fprintf(" Gamma value at C = %d \n\n",C(i))

for j = 1:length(V)
   fprintf(" For V = %d \t ",V(j))
   temp = 1- (V(j)/C(i))^2 ;
   gamma = 1/sqrt(temp)
   fprintf("\n");
end

end

% IOUTPUT :

Gamma value at C = 300000000 For V = 290000000 gamma = 3.9057 For V = 260000000 gamma = 2.0045 For V = 170000000 gamma = 1.21

Gamma value at C = 290000000 For V = 290000000 gamma = Inf For V = 260000000 gamma = 2.2576 For V = 170000000 gamma = 1.2343

Add a comment
Know the answer?
Add Answer to:
MATLAB QUESTION !!! PLEASE USE MATLAB FOR BOTH QUESTIONS!!! THANKS 1) Find the volume of a...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • How do I solve using Matlab? Find the gamma constant for objects traveling close to the...

    How do I solve using Matlab? Find the gamma constant for objects traveling close to the speed of light. Here we are experimenting several speeds of light constants (even though the true speed of light is known). Below are the velocities of the objects and the speed of light constants used. V=[ 2.9, 2.6, 1.7, 2.1, 3, 1.01, 2.36] * 10^8 m/s C=[3, 3.1, 2.9] *10^8 m/s 1 v= 1- c2

  • MATLAB QUESTION !!! PLEASE USE MATLAB FOR BOTH QUESTIONS!!! THANKS 3) Below is a matrix of...

    MATLAB QUESTION !!! PLEASE USE MATLAB FOR BOTH QUESTIONS!!! THANKS 3) Below is a matrix of random numbers. Find the mean, median, and mode of the matrix. B=[0 1 2 3 4 50689 23092 6 8 407] Sort Matrix Z so that the largest numbers of each row are in the first column and smallest numbers descend towards the last column. Must use sort function. 4) Create a matrix X so that the first row has values from 0 to...

  • MATLAB, Please answer question 1. + ENGR 102 Homework 9 :- 1) An elliptical staircase that...

    MATLAB, Please answer question 1. + ENGR 102 Homework 9 :- 1) An elliptical staircase that decreases in size with height can be modeled by the parametric equations: r cos(t) y-rsint) it m) Where, e-0.04t Ib cos(O)+ [a sin()]- a and b are the semimajor and semiminor axes of the ellipse, h is the staircase height, and n is the number pf revolutions that the staircase makes. Make a 3-D plot of the staircase with a 20 m, b 10...

  • Please answer all of the questions, thanks! möbius 2019 Fall - University of British Columbia -...

    Please answer all of the questions, thanks! möbius 2019 Fall - University of British Columbia - PHYS 101 / Assignment Assignment 4 - Question 1 A buoy bobs as a wave passes by in the water 1 point AS (a) What is the period Number Units (b) What is the frequency of the buoy's motion in unit of hertz? Number (c) What is the frequency of the buoy's motion in units of radians per second? Number on 2 The displacement...

  • 1. If the electric field in an EM wave in free space has a peak magnitude...

    1. If the electric field in an EM wave in free space has a peak magnitude of 8.7×10−5V/m, what is the peak magnitude of the magnetic field strength? B0 = _________ T 2. A 1500-nF capacitor with circular parallel plates2.0 cm in diameter is accumulating charge at the rate of 39.0 mC/s at some instant in time. a) What will be the induced magnetic field strength 12.5 cm radially outward from the center of the plates? B1 = _______ T...

  • please help and answer all ASAP please thank you so much Question 49 (1 point) When...

    please help and answer all ASAP please thank you so much Question 49 (1 point) When light travelling in glass enters glass with a higher index of refraction, the wave will be: a) partially transmitted with a change in phase b) transmitted forming a standing wave pattern in air c) reflected so as to form a node at the junction d) totally reflected at the junction e) partially reflected without a change in phase Question 38 (1 point) The charge,...

  • Please answer the following physic questions. Thank you! 1. A dog sees a flowerpot sail up...

    Please answer the following physic questions. Thank you! 1. A dog sees a flowerpot sail up and then back past a window 5.0 ft high. If the total time the pot is in sight is 1.0 seconds, find the height above the window that the pot rises. 2. An elevator ascends with an upward acceleration of 4.0 ft/s2. At the instant its upward speed is 8.0 ft/s, a loose bolt drops from the ceiling of the elevator 9.0 ft from...

  • Could you please answer these questions 1- ++++++++ 2- +++++++ 3- +++++++ 4- ++++++++++++++ 5- ++++++++++...

    Could you please answer these questions 1- ++++++++ 2- +++++++ 3- +++++++ 4- ++++++++++++++ 5- ++++++++++ 6- +++++++++ 7- +++++++ 8- ++++++++++++++ 9- Calculate the average density of the following astronomical body: Mars. Mars = kg/m3 Where does the value fit among those listed in the table below? Look up the density of a typical rock, such as granite in another source and compare the density of Mars to it. A proton, which is the nucleus of a hydrogen atom,...

  • Please help with solving Question 1 (A-C) Thank you! Unless otherwise specified in the problem, you...

    Please help with solving Question 1 (A-C) Thank you! Unless otherwise specified in the problem, you may assume that all solutions are at 25°C. 1. 50.0 mL of a pH 6.00 carbonic acid buffer is titrated with 0.2857 M NaOH, requiring 17.47 mL to reach the second equivalence point. a. Calculate the molarity of carbonic acid and bicarbonate in the original buffer. Carbonic acid: Bicarbonate: b. Calculate the pH of the solution after a total of 100.0 mL of 0.2857...

  • Help me with the workings for these questions please!!!! Question 1 Not answered Marked out of...

    Help me with the workings for these questions please!!!! Question 1 Not answered Marked out of 1.00 The speeds and colours of 1200 passenger cars passing a speed camera are recorded. Colours are recorded as being red, white or other Thirty percent are white and forty five percent are colours other then red or white. There are 397 cars which are speeding and 180 which are red and not speeding. What is the probability that a red car is speeding?...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT