Answered

Hello all, I have a little problem with my simulink model. So, I can't connect this block each other like I had in past model from old version Matlab. Do u mind, how solve ?

Hi @Bogdan The blocks you're looking for are likely still present in the MATLAB directory, although they may be hidden within s...

Hello all, I have a little problem with my simulink model. So, I can't connect this block each other like I had in past model from old version Matlab. Do u mind, how solve ?

Hi @Bogdan The blocks you're looking for are likely still present in the MATLAB directory, although they may be hidden within s...

19 days ago | 0

Answered

I can't see the cosine graph. How do I generate the cosine graph using 2^10 samples?

deltat = 0.001; nsamples = 2000; time =[0 : deltat : deltat*(nsamples-1)]; size(time) % for i = 1:nsamples ...

I can't see the cosine graph. How do I generate the cosine graph using 2^10 samples?

deltat = 0.001; nsamples = 2000; time =[0 : deltat : deltat*(nsamples-1)]; size(time) % for i = 1:nsamples ...

19 days ago | 0

Answered

Solving a system of Non Linear Differential Equations

Hi @kdv0 Apart from the incorrect initial value for , which should be , the rest of the information in the code is correct. The...

Solving a system of Non Linear Differential Equations

Hi @kdv0 Apart from the incorrect initial value for , which should be , the rest of the information in the code is correct. The...

20 days ago | 0

Answered

Plotting an Inverse Laplace Function

Not exactly an answer, but rather an attempt to recreate the 'answer' that was displayed in your Command Window. It appears th...

Plotting an Inverse Laplace Function

Not exactly an answer, but rather an attempt to recreate the 'answer' that was displayed in your Command Window. It appears th...

20 days ago | 0

Answered

How to fix my linear fit model?

Hi @Jenni Upon initial inspection, it appears that the data follows the trend of the ReLU function, which is a piecewise linear...

How to fix my linear fit model?

Hi @Jenni Upon initial inspection, it appears that the data follows the trend of the ReLU function, which is a piecewise linear...

20 days ago | 1

Answered

Simulation for a standalone wind turbine with a DFIG

There is an example for a wind turbine with a Doubly Fed Induction Generator (DFIG). Type "DFIG" at the Help Center to search ...

Simulation for a standalone wind turbine with a DFIG

There is an example for a wind turbine with a Doubly Fed Induction Generator (DFIG). Type "DFIG" at the Help Center to search ...

20 days ago | 0

| accepted

Answered

Couple ODE System not enough Input arguments, Why?

Hi @Thanh Hoang I have added these four lines to your original code. The modifications made are minimal. %% ----- added these ...

Couple ODE System not enough Input arguments, Why?

Hi @Thanh Hoang I have added these four lines to your original code. The modifications made are minimal. %% ----- added these ...

20 days ago | 0

Answered

I want to find two missing parameters in an ODE system of equations using regression/optimization in MATLAB

Hi @naiva saeedia The system identification task at hand seems to be quite challenging, as you only have two parameters to mani...

I want to find two missing parameters in an ODE system of equations using regression/optimization in MATLAB

Hi @naiva saeedia The system identification task at hand seems to be quite challenging, as you only have two parameters to mani...

20 days ago | 0

Answered

How do I optimize solutions of ODE?

Hi @Amito Usami-san Considering your objective of varying the force input 'Fc', it becomes necessary to create a Gain Schedule ...

How do I optimize solutions of ODE?

Hi @Amito Usami-san Considering your objective of varying the force input 'Fc', it becomes necessary to create a Gain Schedule ...

20 days ago | 1

| accepted

Answered

solve differential equations use bvp4c

Hi @lvlv sun Add these two lines to code as shown below to get the desired number of points for the solution. numpts = 5; ...

solve differential equations use bvp4c

Hi @lvlv sun Add these two lines to code as shown below to get the desired number of points for the solution. numpts = 5; ...

21 days ago | 0

| accepted

Answered

hi.I have problem in spacecraft dynamic control simulation.

Hi @ali.heydari I renamed the ODE function to 'odefcn()' because 'ode' is a built-in function introduced in the R2023b release....

hi.I have problem in spacecraft dynamic control simulation.

Hi @ali.heydari I renamed the ODE function to 'odefcn()' because 'ode' is a built-in function introduced in the R2023b release....

21 days ago | 0

| accepted

Answered

How can i pass S-curve through the center of a circle ??

Hi @Dr Sohaib Khan Check if the following is the desired 3D line plot? t1 = (0:pi/100:pi); % Top curve 0 to 180 deg t2 = (-p...

How can i pass S-curve through the center of a circle ??

Hi @Dr Sohaib Khan Check if the following is the desired 3D line plot? t1 = (0:pi/100:pi); % Top curve 0 to 180 deg t2 = (-p...

21 days ago | 0

| accepted

Answered

a nonlinear system and its control input in simulink

Hi @controlEE, If you define solely as a continuous-time function, it would appear as displayed in Figures 1 and 2. h = 2; ...

a nonlinear system and its control input in simulink

Hi @controlEE, If you define solely as a continuous-time function, it would appear as displayed in Figures 1 and 2. h = 2; ...

21 days ago | 1

Answered

Minimize the sum of squared errors between the experimental and predicted data in order to estimate two optimum parameters

Hi @Vikas Meena Taking into account the information provided, this solution is likely the most suitable option I can propose. ...

Minimize the sum of squared errors between the experimental and predicted data in order to estimate two optimum parameters

Hi @Vikas Meena Taking into account the information provided, this solution is likely the most suitable option I can propose. ...

21 days ago | 0

Answered

Need Help with Position, Velocity, Acceleration model

Hi @Sinan When modeling a differential equation in Simulink, it is generally necessary to formulate the problem in integral for...

Need Help with Position, Velocity, Acceleration model

Hi @Sinan When modeling a differential equation in Simulink, it is generally necessary to formulate the problem in integral for...

22 days ago | 0

Answered

i want to get the overall transfer function of the parallel conncected transfer functions blocks

@deekshith, Oh I see. Because you left the spaces. Either you ensure no spaces, or place commas (,) between the elements.

i want to get the overall transfer function of the parallel conncected transfer functions blocks

@deekshith, Oh I see. Because you left the spaces. Either you ensure no spaces, or place commas (,) between the elements.

23 days ago | 0

Answered

i want to get the overall transfer function of the parallel conncected transfer functions blocks

Hi @deekshith, Check if this works for you. %% Transfer function 1 num1=[576 288]; den1=[4.8 34.992 73.392 1504.8]; G1 = tf...

i want to get the overall transfer function of the parallel conncected transfer functions blocks

Hi @deekshith, Check if this works for you. %% Transfer function 1 num1=[576 288]; den1=[4.8 34.992 73.392 1504.8]; G1 = tf...

23 days ago | 1

| accepted

Answered

Matlab is giving different answers for the same calculation

Hi @Stephen The discrepancy observed can be attributed to numerical precision errors introduced by humans. The scripted answer ...

Matlab is giving different answers for the same calculation

Hi @Stephen The discrepancy observed can be attributed to numerical precision errors introduced by humans. The scripted answer ...

24 days ago | 0

| accepted

Answered

ODE45 and dsolve result difference

The order of the state variables between and is swapped in the symbolic approach. syms v(t) y(t) w(t) z(t) % Parameter k1...

ODE45 and dsolve result difference

The order of the state variables between and is swapped in the symbolic approach. syms v(t) y(t) w(t) z(t) % Parameter k1...

25 days ago | 1

| accepted

Answered

error bar in curve fitted graph

Use errorbar(). x = (-1:0.1:1)'; y = asinh(x/0.5); f = fit(x, y, 'poly1') err = y - f(x); errorbar(x, y, err), hold ...

error bar in curve fitted graph

Use errorbar(). x = (-1:0.1:1)'; y = asinh(x/0.5); f = fit(x, y, 'poly1') err = y - f(x); errorbar(x, y, err), hold ...

25 days ago | 0

Answered

Unable to perform 'TF2SS" operation

Rename the script file with a different name, for eample, 'convertTF2SS.mlx'. which tf2ss -all

Unable to perform 'TF2SS" operation

Rename the script file with a different name, for eample, 'convertTF2SS.mlx'. which tf2ss -all

25 days ago | 0

Answered

Optimization Problem for 3-Element Windkessel Model. Need help with improving my optimization and looking for better optimization alogrithims.

Hi @Hussam In my solution, I suggested utilizing the dI/dt-free model: This approach enables me to directly utilize the ra...

Optimization Problem for 3-Element Windkessel Model. Need help with improving my optimization and looking for better optimization alogrithims.

Hi @Hussam In my solution, I suggested utilizing the dI/dt-free model: This approach enables me to directly utilize the ra...

26 days ago | 0

| accepted

Answered

icare function doesn't return the value for X_lqr, K_lqr.

OP: I don't know why, but L_lqr(9x1) matrix's components are all complex number. The description in icare() documentation says ...

icare function doesn't return the value for X_lqr, K_lqr.

OP: I don't know why, but L_lqr(9x1) matrix's components are all complex number. The description in icare() documentation says ...

26 days ago | 0

| accepted

Answered

Plug Flow Reactor with axial dispersion ODE (error)

Hi @Cai Li Song There doesn't seem to be any coding issue with the 2nd-order ODE 'dX_CH4dz' when I substituted all parameters w...

Plug Flow Reactor with axial dispersion ODE (error)

Hi @Cai Li Song There doesn't seem to be any coding issue with the 2nd-order ODE 'dX_CH4dz' when I substituted all parameters w...

28 days ago | 1

| accepted

Answered

how to transfer a simulink model from the old version to the new version

If you're already using MATLAB/Simulink R2024a, you should be able to open the previously saved slx or mdl file from the R2014a ...

how to transfer a simulink model from the old version to the new version

If you're already using MATLAB/Simulink R2024a, you should be able to open the previously saved slx or mdl file from the R2014a ...

28 days ago | 0

Answered

DIfferences on Sloped field using 'dsolve' and 'ode45'

Hi @Athanasios Paraskevopoulos The reason for obtaining different results is due to the selection of an incorrect initial value...

DIfferences on Sloped field using 'dsolve' and 'ode45'

Hi @Athanasios Paraskevopoulos The reason for obtaining different results is due to the selection of an incorrect initial value...

29 days ago | 1

Answered

Optimization Problem for 3-Element Windkessel Model. Need help with improving my optimization and looking for better optimization alogrithims.

Hi @Hussam I also haven't been able to obtain a better identified system for the 3-element Windkessel Model. However, it would ...

Optimization Problem for 3-Element Windkessel Model. Need help with improving my optimization and looking for better optimization alogrithims.

Hi @Hussam I also haven't been able to obtain a better identified system for the 3-element Windkessel Model. However, it would ...

29 days ago | 0

Answered

Why am I not able to get desired output of -40V.

Hi @ChoonHan I have constructed a full-order state observer in Simulink based on the information you provided, and it yields th...

Why am I not able to get desired output of -40V.

Hi @ChoonHan I have constructed a full-order state observer in Simulink based on the information you provided, and it yields th...

30 days ago | 0

| accepted

Answered

How to plot a phase portrait using Runge-Kutta for a system of ODEs?

Hi @Iris Are you expecting the followng Phase Portraits? odefcn = @(t, y) [y(2); % y' = z ...

How to plot a phase portrait using Runge-Kutta for a system of ODEs?

Hi @Iris Are you expecting the followng Phase Portraits? odefcn = @(t, y) [y(2); % y' = z ...

1 month ago | 0

| accepted