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

How is this coded, especially the input?

1 Comment

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?

Sign in to comment.

Answers (1)

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

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Asked:

on 29 Oct 2016

Answered:

on 30 Oct 2016

Community Treasure Hunt

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

Start Hunting!