1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Semenov [28]
3 years ago
10

g Write a user-defined MATLAB function for the following math function: y ( x )=(−.2 x 3 +7 x 2 )e −.3x The input to the functio

n is x and the output is y. Write the function such that x can be a vector (use element-by-element operations). a) Use the function to calculate y(-1.5) and y(5) b) Use the function to make a plot of the function y(x) for -2≤x≤6

Computers and Technology
1 answer:
kolezko [41]3 years ago
4 0

Answer:

Go to explaination for the step by step answer.

Explanation:

a)Code

function[y]=operation(x) % this function takes x as input and returns y as output

y=(-0.2*x^3+7*x^2)*exp(-0.3*x)

end

% call this function in command widow by typing operation(value of x) like shown in figure in the first attachment.

b. write a code of above function in one script window and save the code with same name as name of function that is name of script should be saved as operation.Now copy paste the below code in new script window and run the code

clc

clear all

x=-2:.1:6

n=length(x)

for i=1:1:n

a=x(i)

y(i)=operation(a)

end

plot(y,x)

xlabel('X')

ylabel('Y')

Please kindly check attachment for pictorial answers that supports the code.

You might be interested in
Is the IPv6 address 10:10::10:10 a valid address? Why or why not
docker41 [41]

Answer:

yes it is

Explanation:

im not entirly sure but i just know it is

6 0
4 years ago
After setting up an Internet connection, you cannot connect to Internet websites, just company intranet sites. What is MOST like
Masteriza [31]

Answer:Proxy setting

Explanation:

The proxy setting Is where it control the wifi because its connects to the wifi and the router doesn't find the proxy it does not work.

7 0
3 years ago
Which is true regarding networks?
shutvik [7]
Local Are Network (LAN) is a network that connect computer (or other network devices) in a limited area (local area).
Wide Area Network (WAN) on the other hand is a network that connects computers on a a large geographical area. According these definitions, the following statement is true:
C) wide are network allow users to share files with a secure connection

4 0
4 years ago
Read 2 more answers
Where would you plot full employment on a production possibilities frontier?
True [87]

Answer:

I think it would be C.

Explanation:

7 0
2 years ago
Which one of the following is not possible to view in the debug logs?
Usimov [2.4K]

Answer:

Formula field calculations

Explanation:

We can use debug logs to track events in our company, these events are generated if active users have trace indicators.

A debug log can register information about database operations, system processes and errors, in addition, we can see Resources used by Apex, Workflow Rules, Assignment Rule, HTTP calls, and Apex errors, validation rules. The only one we cannot see is Formula field calculations.

8 0
4 years ago
Other questions:
  • The code that follows saves the data that was in the $names array as
    13·1 answer
  • Exit windows entirely and turns off the computers power
    8·1 answer
  • The ELECTRONIC COMMUNICATIONS PRIVACY ACT prohibits unauthorized eavesdropping by all persons, businesses, and the government.
    5·1 answer
  • Why CD-ROM is more reliable than floppy disk?​
    14·1 answer
  • I have answered 22 questions and my messages are still not working what is it that i'm doing wrong?
    6·1 answer
  • What kind of email formatting change can you make using the Rules Wizard?
    12·1 answer
  • What is the function of a text box in Microsoft word?​
    13·1 answer
  • ما هي طرق اختبار الخرسانة <br>​
    14·1 answer
  • I don't understand how to write both. If I repeat the first code but with 3 and 6 it doesn't work.
    7·1 answer
  • You're a teacher and you've created a form letter in word that you send to the parents of the students in your class at the begi
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!