How to make a function to make a vector with two input points?

1 visualización (últimos 30 días)
PeeJay
PeeJay el 29 de Oct. de 2016
Respondida: Smith el 30 de Oct. de 2016
How is this coded, especially the input?
  1 comentario
Jos (10584)
Jos (10584) el 29 de Oct. de 2016
This question is very vaguely formulated. In general, a function takes an input and provides an output. Can you provide an example of the input, the output, and their relationship?

Iniciar sesión para comentar.

Respuestas (1)

Smith
Smith el 30 de Oct. de 2016
To declare a function, you can use the statement like this:
function [y1,...,yN] = myfun(x1,...,xM)
each input and output could be vectors.

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by