Question

two functions. The first plot on the left is y = 1 − e(−0.5sqrt(x) and the...

two functions. The first plot on the left is y = 1 − e(−0.5sqrt(x) and the second plot on the right

is y = e(−0.5sqrt(x) . Let x be from 0 to 10 with increment 0.1. The first plot is in blue color, solid line and

the second is in red color, dotted line. Turn both grids on. Both figures should have own title and x-axis and “y-axis” labels. Note that you should plot both according to the above instruction. Show the script file and resulting figure.

Write a script that creates two sub-plots in two columns each with one row. Plot the following

Answer:

Script File:

Figure:

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

please give thumbs up, thanks

Figure1 File Edit View Insert Tools Desktop Window Help 0.8 0.7 0.9 0.6 0.8 0.5 X 0.7 0.4 o 0.6 φ0.3 0.5 0.2 0.4 0.1 0.3 0.2

script:

f1=@(x) 1-exp(-0.5*sqrt(x));
f2=@(x) exp(-0.5*sqrt(x));

x=0:0.1:10;
figure,hold on;
subplot(1,2,1),plot(x,f1(x),'b');
xlabel('x')
ylabel('1-exp(-0.5*sqrt(x))')
grid on
subplot(1,2,2),plot(x,f2(x),':','Color','r');
xlabel('x')
ylabel('exp(-0.5*sqrt(x))')
grid on;
hold off

Add a comment
Know the answer?
Add Answer to:
two functions. The first plot on the left is y = 1 − e(−0.5sqrt(x) and the...
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
  • (10 pts) Write a single .py file program to plot the following functions on the same...

    (10 pts) Write a single .py file program to plot the following functions on the same graph for x values from –π to π : y1 = cos(x) y2 = cos(2x) y3 = cos(3x) Plot specifications: Choose an appropriate increment to generate smooth curves and add a comment in the code as to the rationale for that increment to receive full credit y1 is red and dashed y2 is blue and solid y3 is black and dotted Add a legend...

  • Please help me with this MATLAB programming problem! Im coding iin MATLAB2018 if that makes any d...

    Please help me with this MATLAB programming problem! Im coding iin MATLAB2018 if that makes any difference! The first picture is the question i need to answer. The picture below is used as reference to answer the question. The last picture (below) is the into to the problem, and is used as reference. 1. Use Matlab to create the following single plot with three subplots. All titles, gridlines, and axis labels should be as shown. Arc System Response 15 E...

  • Question 2 [30pts]: By using a 3x1 subplot, plot x(t) signal in the first row. Take...

    Question 2 [30pts]: By using a 3x1 subplot, plot x(t) signal in the first row. Take t between 0 s and 10 s with an increment of 1 ms. Furthermore, calculate and plot the Fourier series representation of x(t) = Ek--Nakejkwot for N = 10 and N = 100 in the second and third rows of the subplot. Note that, x(t) = Na elkwot should be calculated by MATLAB. Please comment on increasing N on your results. Do not forget...

  • Python Programming language. Complete the problems below using Jupyter Notebook. Problem Needs to be solved from...

    Python Programming language. Complete the problems below using Jupyter Notebook. Problem Needs to be solved from number #1 link provided for the Data: -----> https://docs.google.com/spreadsheets/d/1TqhyxFKQlOHAyXpQBL-4C96kgZFBoMwUgE8-b33CqPQ/edit?usp=sharing PROBLEMS # 0.0 Import the libraries (pandas, matplotlib, and seaborn) Include the code line: %matplotlib inline #Include the code line: plt.style.use(“ggplot”) #Load the data using pandas #Inspect the data using head(), dtypes ANSWERD: import pandas as pd import matplotlib.pyplot as plt import seaborn as sns plt.style.use('ggplot') %matplotlib inline df = pd.read_csv() print(df.head()) print(df.dtypes) # 1...

  • Question 1: Given the relationships of x,y and z: For x = 0 to 35: y...

    Question 1: Given the relationships of x,y and z: For x = 0 to 35: y = 0.35*x*sin(x) 2=0.70*x*cos(x) In MATLAB, use an interval of x which provides very smooth plots. Create three plots: (Be sure to included title and labels for the plots.) In a single figure with subplots: A rectangular plot of x and y, and A polar plot of x and z In a separate figure: A 3-D plot of x, yandz Submitted a published file containing...

  • Using Matlab; Please show written program to execute and instructions to create plot: 1. Create a...

    Using Matlab; Please show written program to execute and instructions to create plot: 1. Create a vector of x values from 0 to 20 pi, with an increment of pi/100. y=x sin (x) and z= x cos (x) a) create a figure window with two subplots. In first subplot create an x versus y plot and in the second subplot create an y versus z plot. b) create a polar plot of x and y. Add title and labels to...

  • How do I solve using Matlab? Create a matrix X so that the first row has...

    How do I solve using Matlab? Create a matrix X so that the first row has values from 0 to 50 (default intervals), and the second row has values from 50 to 100. Let matrix Y equal to x10 and Z equal to x + y2 Create 4 subplots containing a mesh, surface, 3-Dimensional, and a surface-contour plot. Label with appropriate titles and labels. The plots should have a string look to them.

  • Create a function m-file for the following expression which has two inputs X and Y. Call...

    Create a function m-file for the following expression which has two inputs X and Y. Call it “zoom”. Z = eVX2+Y2 /(X + Y) This function (zoom) can be in a separate script or as the last cell in your main m-file (which includes all of your solutions). Use Zoom to generate values for Z for X and Y values varying from 1 to 4 with an increment of 0.2. Also generate a table that includes all values for X...

  • Consider the initial value problem y' +y=e-, with y(0) = 0. PROJECT 1.) Find the exact...

    Consider the initial value problem y' +y=e-, with y(0) = 0. PROJECT 1.) Find the exact solution to this equation, say 0(x). 2.) Use MATLAB to plot 6(x) in the interval [0.0, 4.0] . Use sufficient points to obtain a smooth curve. 3.) Now create a MATLAB program that uses Euler's Method to approximate the values of $(2) at N = 10 equally spaced points in (0,4). Plot these points on the same plot that was generated in part 2....

  • matlab 1. [suDmit as Iwo JPEGS in Canvas with your netiD in the title of each...

    matlab 1. [suDmit as Iwo JPEGS in Canvas with your netiD in the title of each plot] An electricity startup is looking into the viability of putting solar panels on the rooftops of buildings in Newark, NJ. They want you to help them come up with visualizations for data they have from the National Renewable Energy Laboratory and the National Oceanic and Atmospheric Administration about: - The average amount of sunshine received each month in the form of Global Horizonal...

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