functionoutput=trycreatFunction(x);
% this programming allows to learn how to createa function with one output and one input
output=x*x*2;
end

 채택된 답변

Cris LaPierre
Cris LaPierre 2021년 3월 29일

0 개 추천

You haven't told us what the error is, nor how you called your function.
Take a second to go through the examples in this documentation page. Just copy/paste one of them to your MATLAB, then modify it to work for your assignment.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Instrument Control Toolbox에 대해 자세히 알아보기

태그

질문:

2021년 3월 29일

답변:

2021년 3월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by