Question

Use Matlab to answer the following question

4. In this example, we will try to plot a dome similar to the US Capitol dome. If we assume x andy values range between -10 m

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

Hey,

Note: Brother in case of any queries, just comment in box I would be very happy to assist all your queries

clc;
clear all;
close all;
x=-10:0.5:10;
y=-10:0.5:10;
[X,Y]=meshgrid(x,y);
R=7;
Z2=R^2-X.^2-Y.^2;
Z2(Z2<0)=0;
Z=sqrt(Z2);
surf(X,Y,Z);
xlabel('Independence Ave SE');
ylabel('3rd St SW');

Figure 1 File Edit View nsert Iools Desktop Window Help 10 -6 -6 -8 10 10 3rd St SW Independence Ave SE O Type here to search

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
Use Matlab to answer the following question 4. In this example, we will try to plot...
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
  • Then we can use the cylinder function to revolve those profiles around the z-axis and plot them. ...

    Please help me with this MATLAB programming problem! Im using MATLAB 2018 if that helps. We were unable to transcribe this imageThen we can use the cylinder function to revolve those profiles around the z-axis and plot them. t Now revolve it around the z-axis figure (4) x1,yl,z1 cylinder (profilel) clf: surf (xl, yl, z1) axis vis3d; shading faceted; colormap (jet) xlabel ) ylabel (Cy) zlabel (z 02 [x2.y2.z21cylinder (profflez): hold on: surf (x2, y2, z2) 10 -10 10 Note...

  • Need help with this simple MATLAB code. I'm trying to plot a new set of Y...

    Need help with this simple MATLAB code. I'm trying to plot a new set of Y values from input X values. I get an error that says: "not enough input arguments." clear all clc close all Q = 3.44E+18; D = 1.51E-17; t = 7200; x = [1E-6 2E-6 2.5E-6 3E-6 4.32E-6]; y = Q/sqrt((pi*D*t))*exp^(-(x)^2/(4*D*t)) plot(x,y, '*r') xlabel('Depth'), ylabel('Concentration')

  • 1. (9 points) In this Question, we are going to perform DSBSC modulation using MAT- LAB....

    1. (9 points) In this Question, we are going to perform DSBSC modulation using MAT- LAB. The signal we want to use is a speech signal. Here is the block diagram of ths system we want to simulate: Modulation Demodulation ult gt) m(t) x Butterworth LPF mr(t) c(t) Gr(t) Figure 1: DSBSC modulation and demodulation. (a) Since we are working with speech signals, we will choose a sampling frequency that is much larger than the bandwidth of the signals. As...

  • Use the circuit below to complete the given MATLAB script to plot the three currents 11,...

    Use the circuit below to complete the given MATLAB script to plot the three currents 11, 12, and 13. Run MATLAB then pick an answer from the choices below that matches the MATLAB plot. I Z1 13 212 1, 22, 23 Vs + 8/45° 22222 2.12 MATLAB uncomplete script %phasor plot clc; clear all; close all: Z1-2; Z2=2j; Z3=2-2j; %no need to use the as in 6*j %Vs=87_45 theta=45*pi/180;%convert theta to radians R-8: [a,b]=pol2cart(theta,R): %note theta first in the arguments...

  • NB! This task is required to be solved in matlab. this task also requires the use...

    NB! This task is required to be solved in matlab. this task also requires the use of the function displayDualSpectrum(); which i have pasted in the bottom. the tasks that i need help with are A), B) and C). this is a multi-part question. Task - Frequency mixing We use a basic signal that can be described mathematically as follows: with this We shall then make an amplitude modulated signal: where fc is the carrier frequency. the code below specifies...

  • Exercise 4: Plot salary as a function of yrs.since.phd Use the scatter() function to make a...

    Exercise 4: Plot salary as a function of yrs.since.phd Use the scatter() function to make a scatterplot with yrs.since.phd on the x axis and salary on the y-axts. Make sure you use the salaries_nonull dataframe you made in the previous step, Add "Salary vs. Yrs since PhD" as a title for the plot, and label the x-axis "Years since " and the y-axis "Annual Salary". You'll need the title xLabel and ylabel() methods. (TIP: try using tab autocomplete to explore...

  • Use the circuit below to complete the given MATLAB script to plot the three currents I1,...

    Use the circuit below to complete the given MATLAB script to plot the three currents I1, I2, and I3. Run MATLAB then pick an answer from the choices below that matches the MATLAB plot. MATLAB uncomplete script %phasor plot clc; clear all; close all; Z1=2; Z2=2j; Z3=2-2j; %no need to use the * as in 6*j %Vs=8/_45 theta=45*pi/180; %convert theta to radians R=8; [a,b]=pol2cart(theta,R); %note theta first in the arguments Vs=a+j*b; %cartesian form Z23= ___________; % Complete Zeq=____________ ; %...

  • please solve then upload matlab code Thanks 1. The function f(z, y) (a-x)2 + b(y-12)2 is...

    please solve then upload matlab code Thanks 1. The function f(z, y) (a-x)2 + b(y-12)2 is called Rosenbrock's banana function. It is often used as a benchmarking test for optimization algorithms becatse it is easy to find the minimum by hand but often very difficult to find numerically. Throughout the problem, we will use the values a = 2 and b 10. You can plot this function using the following code: x3:0.1:3; y = -10:0.2:10; Cx,Ymeshgrid(x,y); Z(2-X).2 10* (Y-X. 2)....

  • *matlab* Hi, for the plotting of question C, the correct answer is the first curve graph when i use yp=alpha*xp^beta. w...

    *matlab* Hi, for the plotting of question C, the correct answer is the first curve graph when i use yp=alpha*xp^beta. why cant i use polyval for this? The solubility of oxygen in water S, is a function of the water temperature T. The solubility of O2 as millimoles of O2 per litre of water has been measured for several temperatures as shown in the table below. It is believed that the data follows the power relationship. i.e. S-: αΤβ where...

  • Need help with this Matlab program %% Exercise 1 % NOTE: Please suppress output--i.e., use a...

    Need help with this Matlab program %% Exercise 1 % NOTE: Please suppress output--i.e., use a semicolon ';' at the end of any % commands for which the output is not necessary to answer the question. % Delete these notes before turning in. % Define input variable theta as discretized row vector (i.e., array). theta = ??; % Define radius. r = ??; % Define x and y in terms of theta and r. x = ??; y = ??;...

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