From: Jonathan on
I've encountered a really strange problem while using Matlab 2006a. I'm trying to simulate an electrical model in Simulink, but everytime I run the simulation, a variable called "m" with a value of 1 appears in the workspace. The Simulink model itself does not save any values to the workspace. This is a problem because I need to use a .mat file which has parameters for my model, including the parameter "m". Each time I run the simulation the "m" parameter which i have set to 400000, is changed to 1.

The problem seems to be related to the powergui block, as it does not occur when i delete the block from the model. Of course, the powergui reappears in the subsequent simulation.

Has anyone encountered this issue, or know how to solve the problem? Any help would be much appreciated. Thanks.