Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

7 . Create a vector x with the elements, x n = ( ( 1 ) ^ ( n + 1 ) ) / (

7. Create a vector x with the elements,
xn=
((1)^(n+1))/(2n1)
, where n={1,2,3,...,100}
Then, add up the elements of the version of this vector that has 100 elements
8. Make multi plots for the following two functions in one figure as shown below. Do not forget to add
the axis labels, a title, and grid.
f1(x)= sin(1/x) for 0.01< x <0.1.
f2(x)= cos(1/x) for 0.01< x <0.1.
[Code Hint]:
figure
subplot(2,2,1);
Add your code for plotting the sin(1/x) function
subplot(2,2,2);
Add your code for plotting the cos(1/x) function
subplot(2,2,3:4);
Add your code for plotting the two functions together (use hold on)
13. Write a script that asks for a temperature (in degrees Fahrenheit) and computes the equivalent
temperature in degrees Celsius. The script should keep running until no number is provided to convert.
[Note: the function isempty will be useful here.] IN MATLAB
7. Create a vector x with the elements,
x_(n)=
((1)^(n+1))/(2n1)
, where n={1,2,3,...,100}
Then, add up the elements of the version of this vector that has 100 elements
8. Make multi plots for the following two functions in one figure as shown below. Do not forget to add
the axis labels, a title, and grid.
f1(x)= sin(1/x) for 0.01< x <0.1.
f2(x)= cos(1/x) for 0.01< x <0.1.
[Code Hint]:
figure
subplot(2,2,1);
Add your code for plotting the sin(1/x) function
subplot(2,2,2);
Add your code for plotting the cos(1/x) function
subplot(2,2,3:4);
Add your code for plotting the two functions together (use hold on)
13. Write a script that asks for a temperature (in degrees Fahrenheit) and computes the equivalent
temperature in degrees Celsius. The script should keep running until no number is provided to convert.
[Note: the function isempty will be useful here.] IN MATLAB

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transactions On Large Scale Data And Knowledge Centered Systems Iv Special Issue On Database Systems For Biomedical Applications Lncs 6990

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Christian Bohm ,Johann Eder ,Claudia Plant

2011th Edition

3642237398, 978-3642237393

More Books

Students also viewed these Databases questions

Question

4. How does social marketing differ from commercial marketing?

Answered: 1 week ago