How can I solve this error?
1 次查看(过去 30 天)
显示 更早的评论
Geraldine Rodríguez Coronado
2021-9-15
评论: Geraldine Rodríguez Coronado
2021-9-15
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.
0 个评论
采纳的回答
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 Center 和 File Exchange 中查找有关 Multidimensional Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!