I am trying to obtain 5 current values and 5 voltage values on my simulink project. The outputs of both are generated with a 'To Workspace' block. When i run simulink i get my variables 'current' and 'voltage' without a problem. However, when i change the circuit i change the variable names to 'current1' and 'voltage1' and when i run simulink. The new variables overwrite the first ones. Im trying to get values like current, current1, current2 etc but matlab only saves the most recent values. Does anyone know how to fix this?