Modifying a Class
4 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Construct and Work with Object Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!