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

조회 수: 1 (최근 30일)
PeeJay
PeeJay 2016년 10월 29일
답변: Smith 2016년 10월 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