Community Profile

photo

Sam Chak


Last seen: Today 自 2020 起处于活动状态

统计数据

  • Thankful Level 3
  • 24 Month Streak
  • Guiding Light
  • Knowledgeable Level 5
  • Revival Level 1
  • First Answer

查看徽章

Content Feed

排序方式:

已回答
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 ...

7 hours 前 | 0

已回答
Unable to perform 'TF2SS" operation
Rename the script file with a different name, for eample, 'convertTF2SS.mlx'. which tf2ss -all

7 hours 前 | 0

已回答
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...

1 day 前 | 0

| 已接受

已回答
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 ...

1 day 前 | 0

已回答
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...

2 days 前 | 1

| 已接受

已回答
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 ...

3 days 前 | 0

已回答
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...

4 days 前 | 1

已回答
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 ...

4 days 前 | 0

已回答
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...

5 days 前 | 0

| 已接受

已回答
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 ...

5 days 前 | 0

| 已接受

已回答
Hi, anybody ever done a simulation on a quarter car model suspension system to analyze the vehicle behavior when encountering a speed bump?
Hi @sadat golz I wanted to bring to your attention that it seems you accidentally deleted the graph that you had attached yeste...

5 days 前 | 0

| 已接受

已回答
Matlab showing 0 instead of small value
Hi @Ismita When examining the flow of execution, you will notice that the 'pressure_CGS' vector is initialized with twenty-four...

6 days 前 | 0

已回答
Hello, I would like to model my equation by Matlab Simulink
Hi @Zaid Typically, those who primarily work with pure Python may encounter difficulties when learning to use Simulink at the b...

6 days 前 | 1

| 已接受

已回答
How to use lqr for R=0?
Why would you want to set the input-weighted matrix R to zero? If you set R to zero in the LQR control gain design, it means...

8 days 前 | 0

| 已接受

已回答
step response in 3 scenarios: setting the initial reference voltage, shifting to another output voltage level
Hi @mostafa jabbari Please note that only the first two stages can be simulated since it's unclear through which channel the di...

8 days 前 | 1

| 已接受

已回答
I am trying to solve a system of three differential equations simultaneously
Hi @Erin Summerlin-Donofrio The third differential equation can be rearranged conveniently, allowing all three state equations ...

9 days 前 | 0

已回答
Writing a function that accepts input argument that is one of 3 things
Hi @Kyle Weaver The assignment typically requires designing the Flow of Execution before starting to write the code, but it doe...

9 days 前 | 1

已回答
need help with state space input error
Hi @Ossama You have entered the input matrix B as a single column vector, causing a dimension mismatch. Consequently, the state...

9 days 前 | 0

已回答
Solving a system of differential equations with a variable stored in an array
Hi @Mahima In addition to the standard integration methods suggested by @Star Strider and @Torsten, you can solve the SIR model...

10 days 前 | 0

已回答
Recursive modeling in Simulink
Hi @Yannick Ongena If the population model can be represented as a discrete state-space system, then the appropriate approach w...

11 days 前 | 1

| 已接受

已回答
How Approximate Model FOPDT
Hi @LORIS IACOBAN Considering that the open-loop model lacks the characteristic S-shaped process reaction curve and exhibits os...

11 days 前 | 0

已回答
I need help finding PM and GM for this system.
Hi @marko rois If you know the dynamic system 'sys', which is commonly described using modeling commands like as tf(), zpk(), a...

11 days 前 | 0

| 已接受

已回答
Why do I Receive this error: Error using odearguments ODES_LIN must return a column vector.
Hi @Maureen It seems that you intend to generate the exogenous disturbance and noise signals as the sum of sine waves. Specific...

11 days 前 | 0

已回答
a nonlinear system and its control input in simulink
Hi @controlEE While I cannot evaluate the MATLAB code from the image, it seems that in Equation (6) represents a definite inte...

13 days 前 | 0

| 已接受

已回答
How do I sort the issue of infinite derivative of a state in a PI controller?
Hi @K. Amrit When solving differential equations in Simulink, it's important to prevent the state from going haywire. Consider ...

15 days 前 | 0

已回答
İ wrote a code but idk if its correct can u check it
Hi @Bünyamin Bora The formulas are generally correct. However, there is a technical issue worth considering. Have you ever wond...

15 days 前 | 0

已回答
Optimisation PID Using Sliding mode script
Hi @Tarek Are you still working on this? I revisited this control problem and discovered that a PID controller can be tuned to ...

15 days 前 | 0

已回答
Fuzzy Logic controller as a switch
Hi @Maria Theresa Typically, generating discrete '1' / '0' values using a Mamdani FIS can be challenging due to the intricate d...

15 days 前 | 1

| 已接受

已回答
Trying to adjust weighting on PART of a sigmoid fit
Hi @ROBERTA The data points do not exhibit a symmetrical sigmoidal trend, suggesting that the commonly used logistic function m...

15 days 前 | 0

已回答
Unable to tune a pitch-damper autopilot gains with looptune
Hi @Leonardo Molino, Ogata's formula for the design of the Prefilter is effective, but it only applies when the Compensator i...

16 days 前 | 1

| 已接受

加载更多