Create a single MATLAB script file to create a single MATLAB figure with 4 subpl
ID: 3682494 • Letter: C
Question
Create a single MATLAB script file to create a single MATLAB figure with 4 subplots. Be sure to adhere to the documentation guidelines and to adequately label your graphs. Upload your script file and a PNG file of the results to the drop box. Subplot I A graph of e^ (x/360) sin(2x+42) and ln(x+400)cos(-3x-85) over the range of -360degree to +360degree Subplot 2 A bar graph of any data you wish - you should annotate the graph so it is dear what data is being shown. Subplot 3 A graph that contains 2 equations formatted by LaTeX. The equations don't have to be super long, but they must include several components that require special formatting. Subplot 4 You select another different type of plot (i.e. not a line or bar chart) that MATLAB supports and create your own graph.Explanation / Answer
subplot1:
. Exponential and logarithms: the mathematical quantities ex, lnx, and logx are calculated with exp(x), log(x), and log10(x) , respectively.
Calculate the following quantities:
e3
>> exp(3)
ans = 20.0855
ln(e3)
>> log(exp(3))
ans = 3
log10(e3)
>> log10(exp(3))
ans = 1.3029
log10(105).
>> log10(10^5)
ans = 5
esqrt(163).
>> exp(pi*(sqrt(163)))
ans = 2.6254e+017
3x=17 then x= ?
>> x=log(17)/log(3)
subplot-2:
En exponentially decaying sine plot: plot sinx, 0 x4, taking 10,50, and 100 points in the interval.
x=linspace(0,4*pi,10000);
y=exp(-0.4*x).*sin(x);
plot(y)
subplot3:
clear all;
close all;
clc;
t=0:0.01:5;
x=exp(t);
y=exp(t.^2);
z=conv(x,y);
plot(z);
gtext('kluniversity')
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.