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
AVprozaik [17]
4 years ago
15

Write a user written function that expects as its input argument a vector of x values and a vector of corresponding y-values. Th

e function must return a matrix with 3 columns. The first column must be the x-vector that was provided by the user. The other columns must contain approximations for the first derivative (dy/dx). Column 2 must contain forward difference approximations, column 3 must contain backward difference approximations. Populate the matrix with NaN if the method cannot be computed correctly for a given point.

Computers and Technology
1 answer:
Ostrovityanka [42]4 years ago
7 0

Answer:

See attached Command window for answer

Explanation:

function m=FirstDer(x,y)

m=zeros(length(x),3);

m(:,1)=x;

forward=(y(2:end)-y(1:end-1))./(x(2:end)-x(1:end-1));

forward=[forward;NaN];

backward=(y(2:end)-y(1:end-1))./(x(2:end)-x(1:end-1));

backward=[NaN;backward];

m(:,2)=forward;

m(:,3)=backward;

You might be interested in
java Consider the following problem statement. A cookie recipe calls for the following ingredients: 1.5 cups of sugar 1 cup of b
Veronika [31]

Answer:

Explanation:

The following code is written in Java. It creates a program that asks the user how many cookies they want to make. Then it adjusts the original recipe based on the ratio of the original amount of cookies it makes to the amount the user wants. Finally, passing the output of the new adjusted recipe to the user. Due to technical difficulties, I have added the code as a txt file attached below.

4 0
3 years ago
What is the climax of Ralph breaks the internet?
Murljashka [212]

Answer:

As with the real internet, side quests often end up becoming main quests, and Vanellope falls in love with the gritty nature of internet gaming (through Gal Gadot's speed-racer Shank). Ralph Breaks The Internet also ends up going into the dark web and uses that to form the base of the climax of the film.

Explanation:

hope that help thanx

6 0
3 years ago
How do i block somebody on here, theyre making me have a panic attack. /srs
spin [16.1K]

Answer:

If someone is disturbing you a lo then you can report him/her.

  • Go to g-mail.
  • Type a message to US Support.
  • Add a screenshot of him/her whom you want to report.
  • Use polite words
  • At last, send it.

You will get soon response.

5 0
3 years ago
Read 2 more answers
How do i answer a question on brainly????
ddd [48]

Answer:

there is an answer button below the questions

Explanation:

7 0
3 years ago
Read 2 more answers
What's a reasonable data type that could be included in nearly any item in a logical data model for a software application?
djyliett [7]

Answer:

D. Last_modified

Explanation:

Software development life cycle (SDLC) can be defined as a strategic process or methodology that defines the key steps or stages for creating and implementing high quality software applications.

Some of the models used in the software development life cycle (SDLC) are;

I. Waterfall model.

II. Incremental model.

III. Spiral model.

IV. Agile model.

V. Big bang model.

VI. V-shaped model.

A database schema is a structure which is typically used to represent the logical design of the database and as such represents how data are stored or organized and the relationships existing in a database management system. There are two (2) main categories of a database schema; physical database schema and logical database schema.

Last_modified can be defined as a data type which comprises of the date and time that a resource such as a software application or file was edited or changed.

Hence, Last_modified is a reasonable data type that could be included in nearly any item in a logical data model for a software application.

5 0
3 years ago
Other questions:
  • Clunker Motors Inc. is recalling all vehicles from model years 1995-1998 and 2004-2006.Given a variable modelYear write a statem
    5·1 answer
  • How can you tell if a hacker has administrative access?
    15·2 answers
  • Describe the components of series-parallel circuit
    14·1 answer
  • Many web pages today use ____ —small text files that are stored on your hard drive by a web server, typically the one associated
    6·2 answers
  • This is C++
    10·1 answer
  • Before you insert a page break, what should you do? select the font you want to use for the text that comes after the page break
    8·1 answer
  • The fill command try’s to fill or generate content for cells based on a ________.
    15·1 answer
  • What command would Emile use in his word processing software to insert a bar chart that will automatically adjust to changes mad
    6·2 answers
  • A radio and communications security repairer is responsible for both radio and satellite communication systems.
    6·2 answers
  • A mobile operating system is stored on a ___ chip.​
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!