Question

Familiarize yourself with the subplot and hold command. Using the subplot and plot commands, plot the volume of a sphere as a function of it’s radius for values of radius from 1 to 10. On the same graph plot the surface area of a sphere as a function of the radius ( from radius = 1 to 10). Use different colors for the two plots ( help plot will give details on how to select colors).

Use the following formulas: Volume of sphere = ( 4/3) * pi * radius^3

Surface area of a sphere = 4 * pi * radius^2

Make use of the built-in MATLAB function called pi which returns the value of pi. The plots for the sphere’s volume and surface area are to be plotted in the left-hand pane of the plot window. Repeat the above two plots, but this time plot the volume of a square and surface area of a square as a function of its length from 1 to 10. These plots are to be graphed in right-hand pane of the plot window.

Volume of a square = length of side^3

Surface area of a square = 6 * length of side^2

Label each axes as appropriate and include titles for the plots.

Answer #1

`Hey,

**Note: If you have any queries related to the answer
please do comment. I would be very happy to resolve all your
queries.**

clc

clear all

close all

format long

r=1:10;

V=(4/3)*pi*r.^3;

S=4*pi*r.^2;

subplot(1,2,1)

plot(r,V,'-b',r,S,'-g');

xlabel('r');

ylabel('V/S');

title('For sphere');

subplot(1,2,2)

V=r.^3;

S=6*r.^2;

plot(r,V,'-b',r,S,'-g');

xlabel('l');

ylabel('V/S');

title('For cube');

**Kindly revert for any queries**

**Thanks.**

(a) Generate the following discrete functions using MATLAB. Plot
the two functions on the same page using MATLAB stem function. For
x2[k] plot the real and imaginary parts separately. Therefore, a
total of three plots will be plotted on one page.
(i) x1[k]= -5.1sin((0.1*pi*k)-3*pi/4)+1.1cos(0.4*pi*k) such that
k belongs in[-10,40]
(ii)x2[k]= ((-0.9)^k)*exp(i*pi*k/10) such that k belongs
in[0,100]
(b) Are x1[k] and x2[k] periodic sequences. If so, what are
their periods? Mark them on the plots.
(c) Calculate the total energy of...

PLEASE USE MAT LAB ONLY. THANK YOU
(a) Create and plot the signals listed below and save your
Matlab code in a script file.
i) Cosine signal of frequency 100 Hz over the range [0,0.1]
seconds and samples spaced 10^- 4 seconds apart with a phase of
pi/2 and an amplitude of 1.
PLEASE USE MAT LAB ONLY. THANK YOU
ii) A square wave that oscillates between 0 and 1 every five
samples, plot 3 periods of the waveform.
iii)...

Curve-Fit Function USING MATLAB
Using the top-down design approach, develop a MATLAB function
A8P2RAlastname.m that reads data from a file and performs
regression analysis using polyfit and polyval. The function shall
have the following features:
The input arguments shall include the file name (string), a
vector of integers for the degrees of polynomial fits to be
determined, and an optional plot type specifier (‘m’ for multiple
plots, ‘s’ for a single plot - default).
The data files will be text...

The Setup: A piece of wire of length 10 cm is cut into two (not
necessarily equal length) pieces. One piece of length x cm is made
into a circle and the rest is made into a square.
1. Express the sum of the areas of the square and circle as a
function of x
2. For what x-value is maximum area achieved?
3. For maximum area, how should the wire be bent?
4. Find the critical values of your...

Assignments
Generate and plot the signal
x1(t) = 1+ sin
(4pt), for t
ranging from -1 to 1 in 0.001 increments. Use proper axes labels
with title.
Generate and plot the function
x2(t) = sin
(30pt), for t
ranging from -1 to 1 in 0.001 increments. Use proper axes labels
with title.
Generate and plot the combination function
x3(t) =
x1(t)*x2(t) as above. Use
proper axes labels with title.
Generate and plot the sum of
two cosine waves
v1(t) =...

SIGNALS AND SYSTEMS
Experiment 1
Signal Generation
Date: January 1-8, 2018
The purpose of this laboratory is to familiarize you with the
basic commands in MATLAB for signal generation and verify the
generated signal.
Objectives
1.Learn basic MATLAB commands and
syntax, including help system.
2.Use MATLAB ( from
Citrix) to generate and plot different
signals.
Assignments
Generate and plot the signal
x1(t) = 1+ sin
(4pt), for t
ranging from -1 to 1 in 0.001 increments. Use proper axes...

Using MATLAB
The range of an object shot at an angle θ (with respect to
x-axis), with the initial velocity of V0 (in the absence of air
resistance), is calculated by the following formula:
range=(Vo^2/g)(sin(2theta)) where (0<=theta<=pi/2) And the
trajectory of object is given by:
h=tan(theta).x-(g/2Vo^2*cos^2(theta)).x^2 .Where h is the height of
the object at each x location and g = 9.81 m/s2.
a) Using π/8 increment size for the angle and V0 = 10 m/s, plot
the trajectories of...

MATH125: Unit 1 Individual Project Answer Form
Mathematical Modeling and Problem Solving
ALL questions below regarding SENDING A PACKAGE and PAINTING A
BEDROOM must be answered. Show ALL step-by-step calculations, round
all of your final answers correctly, and include the units of
measurement. Submit this modified Answer Form in the Unit 1 IP
Submissions area.
All commonly used formulas for geometric objects are really
mathematical models of the characteristics of physical objects. For
example, a basketball, because it is a...

Instructions: Choose 8 of the 10 problems
below. Show your work in detail. Answer the questions directly in
this template. Before doing this, it is highly recommending that
you thoroughly review the three examples in the Unit Lesson.
Consider two stable isotopes, helium-3 and helium-4. How many
neutrons and protons are there in each isotope? What are the mass
numbers? Hint: Do not confuse mass number with atomic mass. Review
the definition of them.
If two protons and two neutrons...

Question 1
Which of the following spreadsheet formulas contains a syntax
error?
Group of answer choices
=SQRT( A1 * LN( F3 / G2 + 12 * B6 )
=SQRT( A1 * LN( F3 / G2 + 12 * B6 ) )
=SQRT( A1 * LN( F3 / G2 ) + 12 * B6 )
=SQRT( A1 * LN( F3 ) / G2 + 12 * B6 )
=SQRT( A1 * LN( F3 / G2 + 12 ) * B6 )...

ADVERTISEMENT

Get Answers For Free

Most questions answered within 1 hours.

ADVERTISEMENT

asked 13 minutes ago

asked 27 minutes ago

asked 47 minutes ago

asked 1 hour ago

asked 1 hour ago

asked 1 hour ago

asked 1 hour ago

asked 2 hours ago

asked 2 hours ago

asked 2 hours ago

asked 2 hours ago

asked 2 hours ago