MATLAB: How to call structure value in simulink MATLABsimulink > Test_Structure Test_Structure = a: [10 20 30] b: [50 60 70] >> how to call above structure into simulink? Best Answer Simply put Test_Structure.a or Test_Structure.b in constant block to use their values. Related SolutionsMATLAB: How to add a new field in astruct setfield(test,'NewField',1) MATLAB: How to use constant property when defining TestParameter in unittest. This is a bug:https://www.mathworks.com/support/bugreports/1212962The bug report mentions Static methods but the same issue applies to Constant properties. Related QuestionChange the value of a constant block through scriptHow to replace a Constant block with a From Workspace block programatically
Best Answer