Question

In: Computer Science

matlab What does the following: Draw two figures (or two pictures) side by side using the...

matlab
What does the following:
Draw two figures (or two pictures) side by side using the rules of drawing (names for axes, title for drawing etc ...) both in the same frame

The first figure shows the exponential function (solid red line) and the natural logarithmic function (black dashed line) on the space [0,10].
The second figure shows the sine (black dotted line) and the cosine function (connected in blue and on it) on the space [0.15].

Solutions

Expert Solution

First of all, it's clear that we have to use subplots having 1 row and 2 columns. Then in each frame, we have to plot 2 graphs as stated in question having said color and linestyle.

For all of this, we are going to use the subplot function and others to get what we want.

clear;
clc;
a = 1:0.001:10;

a_exp = e.^a;

a_log = log(a);

subplot(1,2,1);

plot(a,a_exp,'r');
hold on;
plot(a,a_log,'k--');
hold off;
grid on;
title("Exponentianl and log graph");
xlabel("values");
ylabel("Tranformed values");
legend('exponential','natural log');


a = 1:0.001:15;

a_sin = sin(a);

a_cos = cos(a);

subplot(1,2,2);

plot(a,a_sin,'k:');
hold on;
plot(a,a_cos,'b');
hold off;
grid on;
title("Sin and Cos graph");
xlabel("values");
ylabel("Tranformed values");
legend('sin','cos');


Related Solutions

using matlab Designing a program on ANY fractions Partial Show the two formals or figures in...
using matlab Designing a program on ANY fractions Partial Show the two formals or figures in time domin and z domin
1) What are folds? Draw two types of folds or insert pictures of real folds. 2)...
1) What are folds? Draw two types of folds or insert pictures of real folds. 2) Define a joint and what are some properties of joints? 3) What is a joint set? Insert a picture of a joint set in an area 4) How is fault different from a joint? Draw types of faults. 5) What is an earthquake? Briefly define Elastic Rebound Theory 6) Energy is released during an earthquake. In what types of waves the energy travels? 7)...
In the space below you will draw two graphs, side by side. The graph on the...
In the space below you will draw two graphs, side by side. The graph on the left will show the production possibilities frontier (PPF) for the U.S. and the graph on the right will show the PPF for Brazil. Assume that each of these countries produces only two goods: Jets and helicopters. For both countries you will show the quantity of jets produced on the vertical axis and the quantity of helicopters produced on the horizontal axis. Draw a straight-line...
In the space below you will again draw two graphs, side by side. The graph on...
In the space below you will again draw two graphs, side by side. The graph on the left will show the production possibilities frontier (PPF) for Country A and the graph on the right will show the PPF for Country B. Assume that each of these countries produces only two goods: Fish and broccoli. For both countries you will show the quantity (in pounds) of fish produced on the vertical axis and the quantity (pounds) of broccoli produced on the...
Describe two bounded and two unbounded models for hyperbolic geometry. Draw pictures for each model to...
Describe two bounded and two unbounded models for hyperbolic geometry. Draw pictures for each model to demonstrate points, lines and parallel lines.Explain how these four models are related.
Question 1 In the space below you will draw two graphs, side by side. The graph...
Question 1 In the space below you will draw two graphs, side by side. The graph on the left will show the production possibilities frontier (PPF) for the U.S. and the graph on the right will show the PPF for Brazil. Assume that each of these countries produces only two goods: Jets and helicopters. For both countries you will show the quantity of jets produced on the vertical axis and the quantity of helicopters produced on the horizontal axis. Draw...
Draw a Koch Snowflake fractal image using MATLAB programming. I'm pretty new to MATLAB and im...
Draw a Koch Snowflake fractal image using MATLAB programming. I'm pretty new to MATLAB and im not too familar with how all the plotting and drawing functions work.
Draw two graphs side-by-side that show the market equilibrium price for soy beans as $3 per...
Draw two graphs side-by-side that show the market equilibrium price for soy beans as $3 per pound. The second graph is for Sally the soy bean farmer whose profit maximizing output is 80 pounds of soybeans. Show on your graph Sally making a profit of $140 at the market price of $3. Label all curves you draw and clearly indicate the profit region. 1. What effect will these long run changes have on either the supply or demand curve in...
Discussion question #1 – Draw two graphs side-by-side that show the market equilibrium price for soy...
Discussion question #1 – Draw two graphs side-by-side that show the market equilibrium price for soy beans as $3 per pound. The second graph is for Sally the soy bean farmer whose profit maximizing output is 80 pounds of soybeans. Show on your graph Sally making a profit of $140 at the market price of $3. Label all curves you draw and clearly indicate the profit region. 1. Is the above scenario a short-run or long-run equilibrium? 2. If it...
Write two functions (must be titled “sumFW” and “sumFF” respectively) in MATLAB that does the following:...
Write two functions (must be titled “sumFW” and “sumFF” respectively) in MATLAB that does the following: take two integers x and y as lower limit and upper limit, then add and display the sum of all the integers between (including) the lower and upper limits. For sumFW you must use the while loop and for sumFF you must use the for loop
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT