Modifying a Class

2 vues (au cours des 30 derniers jours)
Wade
Wade le 25 Juin 2012
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?

Réponse acceptée

Sean de Wolski
Sean de Wolski le 25 Juin 2012
Looks fine to me. Keep it simple and stupid.

Plus de réponses (0)

Catégories

En savoir plus sur Call Java from MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by