Error Undefined variable “RTW” or class “RTW.TargetPrefs.load”

Error Undefined variable “RTW” or class “RTW.TargetPrefs.load

Solution: Uninstall “RapidSTM32 Blockset”

Step 1 Open Set Path Windows by clicking Set Path as shown below

Open Set Path Windows to remove RapidSTM32 Blockset

Open Set Path Windows to remove RapidSTM32 Blockset

Step 2 Removing RapidSTM32 Blockset

Removing RapidSTM32 Blockset

Removing RapidSTM32 Blockset

2. When the windows appears as shown above, select 5 paths as shown above.
3. Press Remove
4. Press Save
5. Close MATLAB and Restart MATLAB