How can I split a class into two classes with the same name?
Show older comments
I am trying to create two arrays of the same size for a class.
I define a "material" class and assign a material properties "rho","cp" and "lambda". I do calculations with these properties at 10 different locations and put the output in a 5x2 matrix. Now I want to perform these same calculations for the same "material" object, but I want to assign different values for the defined properties to perform the calculations with.
Is there an easy way to implement this or is it recommended to create a new "material" object to accomplish this?
Accepted Answer
More Answers (0)
Categories
Find more on Whos in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!