How can I solve this error?

1 次查看(过去 30 天)
function[x,t,C] = GRxx_P8_E1(L,T,N,M,Dm,cond_inicial,cc_izda,cc_dcha)
Error: Function definition are not supported in this context. Functions can only be created as local or nested functions in code
files.

采纳的回答

the cyclist
the cyclist 2021-9-15
编辑:the cyclist 2021-9-15
When defining a function using that syntax, it has to appear inside a file, for example a text file with the name GRxx_P8_E1.m
Then, you can call the function using the syntax
GRxx_P8_E1(L,T,N,M,Dm,cond_inicial,cc_izda,cc_dcha)
from the command line, or another file.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Multidimensional Arrays 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by