My simulink model is containing two parts, and each part is formed by differents blocks. In the first part I am doing complicated calculations and sending the final result to the workspace using the "to workspace" block after giving the name A to the variable.
The second part of my model is containing a MATLAB fcn block (the fsolve function)which is taking its guess from the workspace through the block "from workspace" which is having the name of its variable changed to "guess".
My fsolve function needs the variable A because one of the equations that has to be solved is containing the variable A as parameter.
when I type in the command window the value of A and of the guess and after that I run the simulation of the second part, fsolve is working and the results are displayed on the "display block".
when I run the simulation of the first part the signs double are displayed in front of A in the workspace but no value for A is given. After that when I run the simulation of the second part of the model(containing fsolve block), fsolve does not work because it can not access the value of A in the workspace.
Please help me solve this problem.