Modifying a Class
1 次查看(过去 30 天)
显示 更早的评论
This question may sound stupid, but here goes..
I am using Matlab to manipulate an object defined using Java API through COMSOL. Should I just write a function that takes in this object and spits out a copy of it:
function [ model] = funcname[model]
Is this bad programming practice? Should I be doing something more elegant like defining a new class with this function as a method?
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Java Package Integration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!