I have a Simulink test file (.MLDATX), which I would like to extract Parameter Overrides from (and store in a table, for example).
How can I do this?
ANSWER
Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.
Parameter Overrides can be extracted from a test file using functionality from the "sltest.testmanager" package, for example:
% Load an instance of the test file testfile = sltest.testmanager.TestFile('./mytestfile.mldatx', false); % Extract and loop over test suites testsuites = getTestSuites( testfile ); for suite = testsuites % Extract and loop over test cases testcases = getTestCases( suite ); for testcase = testcases % Extract and loop over parameter sets paramsets = getParameterSets( testcase ); for paramset = paramsets % Extract and loop over parameter overrides paramoverrides = getParameterOverrides ( paramset ); for paramoverride = paramoverrides % Use the Parameter Overrides disp( paramoverride.Name ) disp( paramoverride.Value ) end end end end
SEE COMPLETE ANSWER CLICK THE LINK
Comments
Post a Comment