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

 Respuesta aceptada

Cris LaPierre
Cris LaPierre el 29 de Mzo. de 2021

0 votos

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.

Más respuestas (0)

Categorías

Más información sobre Instrument Control Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 29 de Mzo. de 2021

Respondida:

el 29 de Mzo. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by