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
What are the different methods of enhancing/decorating<br> bamboo product​
Zepler [3.9K]

Explanation:

Methods of this technique include glueing, chemical gilding, and electroplating.  Staining is used to color wood to give an illusion of texture. This may come in two varieties.

7 0
3 years ago
In Scheme, the form (symbol-length? 'James) will return: Group of answer choices 0 5 6 error message
Nadya [2.5K]

Answer:

an error message

Explanation:

The return value is the value which is sent back by the function to a place in the code from where the \text{function} was called from. Its main work is to return a value form the function.

In the context, the form of  "(symbol-length? 'James)" in Scheme will return the  value --- ' an error message'.

7 0
3 years ago
Halcyon, an e-publisher, has recently decided to use an information system that administers the way its customers access its onl
puteri [66]

Answer:

b) digital rights management

Explanation:

Halcyon, an e-publisher, has recently decided to use an information system that administers the way its customers access its online publications. The system assigns each customer with a unique ID, maintains records of the books purchased by them, encrypts electronic documents for transmission, and includes options to order hard copies of the electronic documents they read online. The set of technology being used here is digital rights management.

8 0
3 years ago
. What is the difference between a combinational circuit and sequential circuit? Give example of each.
Licemer1 [7]

A combinational circuit is a complex circuit with different elements... for eg. computer motherboard is a very complex circuit with a lot of different elements connecting other components of computer as well.

A sequential circuit is a bit more primitive often a part of combinational one. For eg. three resistors connected in parallel.

Hope this helps.

r3t40

7 0
3 years ago
If you want to start a convo go here<br> https://padlet.com/beighbay000/x0q2v6qrm46j
Setler [38]

Answer:

ok

Explanation:

thx for tha points

..........

6 0
3 years ago
Other questions:
  • INTRODUCTION TO JAVA​
    8·1 answer
  • Social scientists who study criminal behavior.
    7·2 answers
  • What is the speedup of going from a 1-issue processor to a 2-issue processor? use your code from part a for both 1-issue and 2-i
    11·1 answer
  • Write a program whose input is a string which contains a character and a phrase, and whose output indicates the number of times
    6·1 answer
  • An administrative assistant types a document, saves, and prints. The assistant is using _____.
    13·1 answer
  • A project manager types a document and prints it. He is using _____. hardware software hardware and software
    12·2 answers
  • Use the drop-down menus to complete the statements about Outlook notes.
    8·1 answer
  • Demonstrate how to write each condition as an if-else in Java. If yes, then the computer should print “The answer is A,” “The an
    6·2 answers
  • Cuales son mis fortalezas como estudiantes
    14·1 answer
  • PLEASE HELP. Nobody has been helping me, i need to resolve this code issue for game design
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!