Automatically generate functions from snippet of a script
4 次查看(过去 30 天)
显示 更早的评论
Hello,
When I write a code in matlab, I usually start writing a script. When the script gets bigger, I transform it into a function and I start splitting it into sub-functions.
I wonder if there is an automatic way to transform a snippet of code into a function. What I mean is just generating the header with input. Matlab is already able to recognize variables that are declared in a function and variables that are not. Provided the output of a function, all the variables that are not declared should be automatically written in the header input.
I don't know if something like this exists, but it would be a huge saving of time!
Alessandro.
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!