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

2 vues (au cours des 30 derniers jours)
PeeJay
PeeJay le 29 Oct 2016
Réponse apportée : Smith le 30 Oct 2016
How is this coded, especially the input?
  1 commentaire
Jos (10584)
Jos (10584) le 29 Oct 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?

Connectez-vous pour commenter.

Réponses (1)

Smith
Smith le 30 Oct 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.

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by