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

2 次查看(过去 30 天)
How is this coded, especially the input?
  1 个评论
Jos (10584)
Jos (10584) 2016-10-29
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?

请先登录,再进行评论。

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by