Question

How to make 2 different models running in parallel to be executed at the same speed from the beginning to the end of the simulation.

Hi everyone, I have 2 Simulink models. Both models run with Automatic solver selction and a solver of the Fixed step type and ...

10 months ago | 0 answers | 0

Question

Problem when two Simulink models are combined.

Hi everyone, I developped in MATLAB 2019a version, separately, two Simulink models. They work perfectly when they are run...

10 months ago | 1 answer | 0

Question

Is the excessive use of the Derivative block the cause of my problem ??

Hi everyone, I built a simulink model in which I was obliged to use the derivative block many times. But each time I run the...

2 years ago | 0 answers | 0

Question

Creation of a simulink block from a Mupad expression containing subscripts.

Hello fellow Matlabers, My goal is to generate a simulink block from a Mupad expression. In Mupad I wrote: S := sum(s...

2 years ago | 1 answer | 0

Question

How can I stabilize this simulink model ??

Hi everyone, I built a model in simulink representing the propulsion plant of a ship. The simulation is supposed to run for 1...

3 years ago | 0 answers | 1

Question

Why the interpreted MATLAB function block is giving a different result from the Fcn block ?????

Hi everyone, I used the same mathematical expression to perform a calculation using the interpreted MATLAB function block and...

3 years ago | 1 answer | 0

Question

Can anyone help me with this model ??? (interminable integrator blocks error messages)

Hi everyone. I have been trying to run the simulation of my simulink model since 3 weeks (I have joined the simulink model to th...

4 years ago | 0 answers | 0

Question

Why the the simulink Function block (Fcn) is giving me syntax error ????

Hello every one. In my Simulink model I am using a Function block (Fcn) having input from a mux block having 6 inputs. In th...

4 years ago | 0 answers | 0

Question

How to use simulink to find minimums of a signal over successive intervals of time ???????

I want to use simulink blocks to find the mimimums ( different from zero ) of the signal below over chosen intervals of time: ...

4 years ago | 1 answer | 0

Question

Why the "sum" function is giving a wrong result in Simulink ???

My goal is to calculate the following sum using Simulink blocks 1.1*10^2*30^9+1.4*10^7*30^4+0.25*10^6*30^8 In the beginni...

7 years ago | 2 answers | 0

Answered

Is there any notation for the calculation of this sum ??

Thank you very much Abdelmalek for your answer. I am still having a problem. I have saved the M-file below under the name ...

Is there any notation for the calculation of this sum ??

Thank you very much Abdelmalek for your answer. I am still having a problem. I have saved the M-file below under the name ...

7 years ago | 0

Question

Is there any notation for the calculation of this sum ??

I want to calculate a sum of products of the form : 1.1*a^2*b^9+1.4*a^7*b^4+0.25*a^6*b^8 where a and b are constants. T...

7 years ago | 3 answers | 0

Question

How can I find solutions included in an interval ??

I am trying to solve an equation of one unknown Z using fsolve. Let us say that the value of the guess for Z is 610 and that ...

8 years ago | 1 answer | 0

Question

Is there any function other than Fsolve to solve systems of nonlinear equations ????

I am trying to solve the following system of 3 nonlinear equations: XYZ(1)-A*(B*XYZ(2)^P1-C*XYZ(2)^P2)^(1/2)=0 XYZ(1)*F+G-...

8 years ago | 2 answers | 0

Question

Is there any function other than Fsolve to solve systems of nonlinear equations ????

I am trying to solve the following system of 3 nonlinear equations: XYZ(1)-A*(B*XYZ(2)^P1-C*XYZ(2)^P2)^(1/2)=0 XYZ(1...

8 years ago | 3 answers | 0

Question

How can I save the settings of fsolve in the optimization tool ?

I am using the fsolve function in a simulink block which is the "MATLAB function" block. I want to try using the fsolve funct...

8 years ago | 1 answer | 1

Question

How can I save the settings of fsolve in the optimization tool ?

I am using the fsolve function in a simulink block which is the "MATLAB function" block. I want to try using the fsolve funct...

8 years ago | 0 answers | 0

Question

which simulink blocks can I use to create the function below ??

Please which simulink blocks can I use to create the function below ? fsolve(@(XY)anothertrial(xy,A,B,P1,P2),XY0) Where...

8 years ago | 3 answers | 0

Question

which simulink blocks can I use to create this function ?

Please which simulink blocks can I use to create the function below ? fsolve(@(XY)anothertrial(xy,A,B,P1,P2),XY0) Whe...

8 years ago | 0 answers | 0

Question

Which simulink blocks can I use to create this function ?????

Please which simulink blocks can I use to create the function below ? fsolve(@(XY)anothertrial(xy,A,B,P1,P2),XY0) Where...

8 years ago | 0 answers | 0

Question

How can I find a correct value of the guess for my system of non linear equations ??

I want to solve the following system of 3 non linear equations using fsolve.The unknowns to be found are X , Y and Z. X-241...

8 years ago | 2 answers | 0

Question

Is there any solution to my problem ?please help me.

The goal is to solve the following system of 2 non linear equations in simulink. We have to find x and y such as: A*x^P1+2*...

8 years ago | 2 answers | 0

Question

How can I send a result to the workspace and take the same result from workspace ??

My simulink model is containing two parts, and each part is formed by differents blocks. In the first part I am doing complicate...

8 years ago | 4 answers | 0

Question

What is wrong in my Fsolve m-file ????

when I saved the m-file below under the name trial.m function fcns=trial(z) x=z(1); y=z(2); fcns...

8 years ago | 1 answer | 0

Answered

Fsolve function with values read from the workspace

xy0 = [1,1]; %initial guess eqn = @(xy) [A .* xy(1).^p1 + 2 .* xy(2).^2 - 5 .* xy(1) + 7 * y(2) - 40, 3 .* xy(1).^2 - xy(2).^2...

Fsolve function with values read from the workspace

xy0 = [1,1]; %initial guess eqn = @(xy) [A .* xy(1).^p1 + 2 .* xy(2).^2 - 5 .* xy(1) + 7 * y(2) - 40, 3 .* xy(1).^2 - xy(2).^2...

8 years ago | 0

Question

Fsolve function with values read from the workspace

we all know that we use an m-file with the system of non-linear equations that we want to solve with Fsolve. I want the m-file t...

8 years ago | 3 answers | 0