How can I set class properties with a vector from another script?
6 views (last 30 days)
I'm currently trying to set up a Matlab Class for some calculations. I the Class are a lot of functions to calculate the different variables for the maincalculation at the end of the class-script. I set the input values as the class properties. And this is where the problems begin. I want to set these properties with a vector from a different script which is later supposed to run a global optimization. I cannot figure out a way to do that, I've searched a lot in the Community and on Google.
This is what my class-properties currently looks like:
%UNTITLED2 Summary of this class goes here
% Detailed explanation goes here
g = 9.81;
vis = 1.1392e-06;
rho = 1025.8;
d = -0.9;
All the properties without a value are supposed to be set with a vector from a different script.
Any help would be geratly appreciated!