{"id":12404,"date":"2022-06-14T09:26:44","date_gmt":"2022-06-14T13:26:44","guid":{"rendered":"https:\/\/blogs.mathworks.com\/simulink\/?p=12404"},"modified":"2022-06-21T17:05:40","modified_gmt":"2022-06-21T21:05:40","slug":"unifying-matlab-and-simulink-a-user-story-part-5","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/simulink\/2022\/06\/14\/unifying-matlab-and-simulink-a-user-story-part-5\/","title":{"rendered":"Unifying MATLAB and Simulink: A User Story Part 5"},"content":{"rendered":"<div class = rtcContent><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>This week, I am introducing a set of two examples implemented using the workflow described in this blog post series. <\/span><\/div><ul  style = 'margin: 10px 0px 20px; padding-left: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px; '><li  style = 'margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap; '><a href = \"https:\/\/blogs.mathworks.com\/simulink\/2022\/04\/22\/unifying-matlab-and-simulink-a-user-story-part-1\/\"><span>Unifying MATLAB and Simulink: A User Story Part 1<\/span><\/a><span>: Parameterizing a model with MATLAB objects<\/span><\/li><li  style = 'margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap; '><a href = \"https:\/\/blogs.mathworks.com\/simulink\/2022\/04\/28\/unifying-matlab-and-simulink-a-user-story-part-2\/\"><span>Unifying MATLAB and Simulink: A User Story Part 2<\/span><\/a><span>: The <\/span><span style=' font-family: monospace;'>slPart<\/span><span> class, block template and data variants<\/span><\/li><li  style = 'margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap; '><a href = \"https:\/\/blogs.mathworks.com\/simulink\/2022\/05\/05\/unifying-matlab-and-simulink-a-user-story-part-3\/\"><span>Unifying MATLAB and Simulink: A User Story Part 3<\/span><\/a><span> :Controlling variants with MATLAB objects<\/span><\/li><li  style = 'margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap; '><a href = \"https:\/\/blogs.mathworks.com\/simulink\/2022\/05\/13\/unifying-matlab-and-simulink-a-user-story-part-4\/\"><span>Unifying MATLAB and Simulink: A User Story Part 4<\/span><\/a><span>: Post-processing and visualizing logged data<\/span><\/li><li  style = 'margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap; '><a href = \"https:\/\/blogs.mathworks.com\/simulink\/?p=12404\"><span>Unifying MATLAB and Simulink: A User Story Part 5<\/span><\/a><span>: Larger examples<\/span><\/li><\/ul><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>This week's examples are larger and more complex than the examples previously introduced in this series. Hopefully, they will help better illustrate the advantages of this workflow. <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>You can download the example from <\/span><a href = \"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/113850-unifying-matlab-and-simulink-example\"><span>MATLAB File Exchange<\/span><\/a><span>, or clone the <\/span><a href = \"https:\/\/github.com\/guirlo\/Unifying-MATLAB-and-Simulink-Example\"><span>repository on GitHub<\/span><\/a><span>.<\/span><\/div><h2  style = 'margin: 20px 10px 5px 4px; padding: 0px; line-height: 20px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: 700; text-align: left; '><span>Overview<\/span><\/h2><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Once you download and unzip the File Exchange submission, you will find the following:<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/Unifying_ML_SL_Part5_1.png\" width = \"412\" height = \"176\" alt = \"\" style = \"vertical-align: baseline; width: 412px; height: 176px;\"><\/img><\/div><h3  style = 'margin: 15px 10px 5px 4px; padding: 0px; line-height: 18px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 17px; font-weight: 700; text-align: left; '><span style=' font-family: monospace;'>workflow <\/span><span>Project<\/span><\/h3><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>This folder contains a <\/span><a href = \"https:\/\/www.mathworks.com\/help\/releases\/R2022a\/matlab\/projects.html\"><span>Project<\/span><\/a><span> made of the core workflow files, including the <\/span><span style=' font-family: monospace;'>slPart<\/span><span> class and the template library described in previous posts. It also contains an <\/span><a href = \"https:\/\/www.mathworks.com\/help\/releases\/R2022a\/matlab\/app-designer.html\"><span>App Designer<\/span><\/a><span> app I developed to manipulate the object configuring the model. This project is used as a <\/span><a href = \"https:\/\/www.mathworks.com\/help\/releases\/R2022a\/simulink\/ug\/componentization-using-reference-projects.html\"><span>referenced project<\/span><\/a><span> by the two projects described in the next two sections.<\/span><\/div><h3  style = 'margin: 15px 10px 5px 4px; padding: 0px; line-height: 18px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 17px; font-weight: 700; text-align: left; '><span style=' font-family: monospace;'>openSimulinkExample.m<\/span><\/h3><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>This script opens the example located in the <\/span><span style=' font-family: monospace;'>SimulinkExample<\/span><span> folder. As its name implies, this example is implemented using only Simulink (no additional toolboxes). For this example, I combined features from the examples <\/span><a href = \"https:\/\/www.mathworks.com\/help\/releases\/R2022a\/simulink\/slref\/automotive-suspension.html\"><span>Automotive Suspension<\/span><\/a><span> and model <\/span><span style=' font-family: monospace;'>sldemo_suspn_3dof<\/span><span>, which is used in multiple examples, such as <\/span><a href = \"https:\/\/www.mathworks.com\/help\/releases\/R2022a\/simulink\/slref\/multiple-simulations-workflow-tips.html\"><span>Multiple Simulations Workflow Tips<\/span><\/a><span>.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>This example simulates the dynamics of a vehicle suspension and can be configured to simulate multiple types of suspensions with different degrees of freedom. Here is a diagram for the two degrees of freedom longitudinal configuration:<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/Unifying_ML_SL_Part5_2.png\" width = \"402\" height = \"168\" alt = \"\" style = \"vertical-align: baseline; width: 402px; height: 168px;\"><\/img><\/div><h3  style = 'margin: 15px 10px 5px 4px; padding: 0px; line-height: 18px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 17px; font-weight: 700; text-align: left; '><span style=' font-family: monospace;'>openSimscapeExample.m<\/span><\/h3><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>This script opens the example stored in the folder <\/span><span style=' font-family: monospace;'>SimscapeExample<\/span><span>. I implemented this example by combining three examples from Simscape Driveline:<\/span><\/div><ul  style = 'margin: 10px 0px 20px; padding-left: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px; '><li  style = 'margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap; '><a href = \"https:\/\/www.mathworks.com\/help\/releases\/R2022a\/physmod\/sdl\/ug\/parallel-hybrid-transmission.html\"><span>Parallel Hybrid Transmission<\/span><\/a><\/li><li  style = 'margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap; '><a href = \"https:\/\/www.mathworks.com\/help\/releases\/R2022a\/physmod\/sdl\/ug\/power-split-hybrid-transmission.html\"><span>Power-Split Hybrid Transmission<\/span><\/a><\/li><li  style = 'margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap; '><a href = \"https:\/\/www.mathworks.com\/help\/releases\/R2022a\/physmod\/sdl\/ug\/series-hybrid-transmission.html\"><span>Series Hybrid Transmission<\/span><\/a><\/li><\/ul><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>This example allows you to simulate the acceleration of a vehicle with different types of hybrid drivetrains.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/Unifying_ML_SL_Part5_3.png\" width = \"874\" height = \"223\" alt = \"\" style = \"vertical-align: baseline; width: 874px; height: 223px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>I decided to include this example for a couple of reasons. First, I find that this workflow fits particularly well with Simscape physical components. Second, this illustrates that the same workflow core  functionalities, the <\/span><span style=' font-family: monospace;'>slPart<\/span><span> class and the system configurator app, work for different projects.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Each project contains a live script (<\/span><span style=' font-family: monospace;'>walkthroughSL.mlx<\/span><span> or <\/span><span style=' font-family: monospace;'>walkthrough_SSC.mlx<\/span><span>) to guide you through the steps of how to use the model.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/Unifying_ML_SL_Part5_4.png\" width = \"530\" height = \"456\" alt = \"\" style = \"vertical-align: baseline; width: 530px; height: 456px;\"><\/img><\/div><h2  style = 'margin: 20px 10px 5px 4px; padding: 0px; line-height: 20px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: 700; text-align: left; '><span>Model and Data Hierarchy<\/span><\/h2><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>One of the main takeaways from this example is that each <\/span><span style=' font-family: monospace;'>slPart<\/span><span> is made of a Simulink Subsystem and a MATLAB class. When assembled in a simulation, this results in a hierarchy of MATLAB classes corresponding to the hierarchy of Subsystems in the model.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>When you open the main model in the project, you will see that it contains one Subsystem that takes as parameter an object named <\/span><span style=' font-family: monospace;'>vehicleObject<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/Unifying_ML_SL_Part5_5.png\" width = \"709\" height = \"337\" alt = \"\" style = \"vertical-align: baseline; width: 709px; height: 337px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>In MATLAB, define this variable by instantiating one of the classes in the <\/span><span style=' font-family: monospace;'>+vehicle<\/span><span> package:<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/Unifying_ML_SL_Part5_6.png\" width = \"428\" height = \"251\" alt = \"\" style = \"vertical-align: baseline; width: 428px; height: 251px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Here is what the hierarchy of Subsystems looks like in the model:<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/Unifying_ML_SL_Part5_7.png\" width = \"377\" height = \"366\" alt = \"\" style = \"vertical-align: baseline; width: 377px; height: 366px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>and the corresponding hierarchy of MATLAB classes:<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/Unifying_ML_SL_Part5_8.png\" width = \"675\" height = \"793\" alt = \"\" style = \"vertical-align: baseline; width: 675px; height: 793px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>In the model, you can find Variant Subsystems:<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/Unifying_ML_SL_Part5_9.png\" width = \"866\" height = \"407\" alt = \"\" style = \"vertical-align: baseline; width: 866px; height: 407px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>In MATLAB, tab-completion lists the same available variants, and you can choose the active one by assigning it to the corresponding property of the parent object:<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/Unifying_ML_SL_Part5_10.png\" width = \"519\" height = \"159\" alt = \"\" style = \"vertical-align: baseline; width: 519px; height: 159px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>You can also tweak parameter values. For example, the mass of the vehicle in Simulink<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/Unifying_ML_SL_Part5_11.png\" width = \"724\" height = \"214\" alt = \"\" style = \"vertical-align: baseline; width: 724px; height: 214px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>can be modified in MATLAB through the vehicle object:<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/Unifying_ML_SL_Part5_12.png\" width = \"489\" height = \"334\" alt = \"\" style = \"vertical-align: baseline; width: 489px; height: 334px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>See the walkthrough.mlx live script in each project for more example MATLAB code interacting with the model through the <\/span><span style=' font-family: monospace;'>vehicleObject <\/span><span>variable.<\/span><\/div><h2  style = 'margin: 20px 10px 5px 4px; padding: 0px; line-height: 20px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: 700; text-align: left; '><span>Configuring the Simulation Using the MATLAB App<\/span><\/h2><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>For convenience, I also included in the project a MATLAB app that I created using <\/span><a href = \"https:\/\/www.mathworks.com\/help\/releases\/R2022a\/matlab\/app-designer.html\"><span>App Designer<\/span><\/a><span>. The app allows you to configure the MATLAB object representing the system. This app allows you to select one <\/span><span style=' font-family: monospace;'>slPart<\/span><span> in the hierarchy, and edit its properties or swap with another <\/span><span style=' font-family: monospace;'>slPart<\/span><span> of the same family. Note that the vehicleObject variable in the MATLAB workspace will be updated by the app.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>To get started with app, I am giving you two options, depending on your preferences:<\/span><\/div><ul  style = 'margin: 10px 0px 20px; padding-left: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px; '><li  style = 'margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap; '><span>Dowload and watch <\/span><a href = \"http:\/\/blogs.mathworks.com\/images\/simulink\/2022Q2\/SystemConfiguratorAppOverview.mp4\"><span>this 5 minutes video<\/span><\/a><span> where I walk you through how the app works<\/span><\/li><li  style = 'margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap; '><span>Use the following image as a \"cheat sheet\" to get started:<\/span><\/li><\/ul><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/Unifying_ML_SL_Part5_13.png\" width = \"834\" height = \"719\" alt = \"\" style = \"vertical-align: baseline; width: 834px; height: 719px;\"><\/img><\/div><h2  style = 'margin: 20px 10px 5px 4px; padding: 0px; line-height: 20px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: 700; text-align: left; '><span>Now it's your turn<\/span><\/h2><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Download the example from <\/span><a href = \"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/113850-unifying-matlab-and-simulink-example\"><span>MATLAB File Exchange<\/span><\/a><span>, or clone the <\/span><a href = \"https:\/\/github.com\/guirlo\/Unifying-MATLAB-and-Simulink-Example\"><span>repository on GitHub<\/span><\/a><span> and let us know what you think in the comments below. If you like the workflow, let us know in the comments below what kind of enhancements or new features you think MathWorks should provide to make this workflow simpler and more robust.<\/span><\/div>\r\n<\/div><script type=\"text\/javascript\">var css = ''; var head = document.head || document.getElementsByTagName('head')[0], style = document.createElement('style'); head.appendChild(style); style.type = 'text\/css'; if (style.styleSheet){ style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); }<\/script><a href=\"\"><button class=\"btn btn-sm btn_color_blue pull-right add_margin_10\">Download Live Script<\/button><\/a>","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img src=\"https:\/\/blogs.mathworks.com\/simulink\/files\/featuredApp.png\" class=\"img-responsive attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"\" decoding=\"async\" loading=\"lazy\" \/><\/div><p>This week, I am introducing a set of two examples implemented using the workflow described in this blog post series. Unifying MATLAB and Simulink: A User Story Part 1: Parameterizing a model with... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/simulink\/2022\/06\/14\/unifying-matlab-and-simulink-a-user-story-part-5\/\">read more >><\/a><\/p>","protected":false},"author":41,"featured_media":12719,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[34,47,30,69],"tags":[638],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts\/12404"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/comments?post=12404"}],"version-history":[{"count":7,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts\/12404\/revisions"}],"predecessor-version":[{"id":12836,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts\/12404\/revisions\/12836"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/media\/12719"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/media?parent=12404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/categories?post=12404"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/tags?post=12404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}