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

表示方法

回答済み
Solution of Growth problem
% y0 is a 6 x 1 vector of initial city populations y0 = [100; 300; 500; 125; 100; 200]; % t is the number of years of growth ...

約19時間 前 | 1

| 採用済み

回答済み
plot with text function
@Francesco, do you want to display the figure without tick marks? ax = axes(figure()); % create axes handle plot(0:10); xl...

1日 前 | 0

回答済み
trying to write complex equation with parentheses
Hi @ali When inputting a lengthy equation with multiple parentheses into the programming code, I usually adopt a "divide-and-co...

1日 前 | 0

回答済み
Problem facing in solving xdot=Ax system when A is unstable.
Hi @Hemanta Hazarika This is an educated guess. If the unstable state matrix is and the initial values are , then the error be...

1日 前 | 0

回答済み
Need to fit a curve to some data points
Hi @ISh This Rational function model (Rat11) precisely fits the three data points. format long g %% Data xdat = [ 1 2 100...

1日 前 | 0

回答済み
Need to fit a curve to some data points
Here's another candidate. An exponential decay function model should align with the description you provided. Try learning how ...

1日 前 | 0

| 採用済み

回答済み
Can I trust this closed loop response and include it as a final result in my Thesis?
Hi @Ayesha, You can actually verify the result (from Check Bode Characteristics block) with the Bode plot of the Closed-loop Sy...

2日 前 | 0

| 採用済み

回答済み
providing our own Initial cluster centroids to fcm function
Hi @NALLARASU KRISH The ability to provide the initial cluster centers was introduced in R2023b through the fcmOptions() comman...

3日 前 | 1

| 採用済み

回答済み
how to find intersection data between 2 function
Hi @Arif The red line represents the extrapolation up to the vertical line . The main concept here is to determine the equation...

3日 前 | 0

回答済み
Plotting sine functions using linspace command
It says to plot y as a function of t. You can follow this example to make the plot. You can learn more about linspace() and plo...

3日 前 | 1

回答済み
Centigrade to Fahrenheit Converter doesn't work properly
Hey @Laura, there doesn't seem to be any issue with the code when the input() command is placed outside of the C2F() function. ...

3日 前 | 0

回答済み
Why does this code give me an error?
Hi @Sadiq Akbar If nonlinear inequality constraints are not available, you can disable them in the code. It appears that the up...

4日 前 | 0

回答済み
Finding the peak of a sinusoidal voltage using only Simulink Blocks (No Matlab Function Block)
Hi @HASSAN ABDELGABIR Isn't the MATLAB Function block part of the Simulink block families that grants you the greater potential...

4日 前 | 0

回答済み
How can a Simulink State Space block state be periodically reset?
Hi @John I want to make sure I understand the 'reset' problem correctly. Are you looking to update the matrices in the state-sp...

4日 前 | 0

回答済み
How to optimize a parameter, influencing the dynamic response of a control system
Hi @javier rivas I just wanted to point out that if you use the step() command instead of the lsim() command, the resulting out...

5日 前 | 1

回答済み
Simulink integrator error, please help
Hi @Federico Ennio, Considering the system dynamics, the controller can be designed as follows , where , , . Ho...

5日 前 | 0

回答済み
I need Pressurized Water Reactor (PWR) steam generator matlab code so if anyone has please help me. Thanks
Hi @JAWED AHMED While I'm not an expert in Pressurized Water Reactor (PWR) systems, I can point you towards a helpful resource....

6日 前 | 0

回答済み
How to get 2% and 5% settling time from simulink?
Hi @Daniel Below, you'll find the calculation for the settling time based on the 5% criterion: %% System zeta= 1/2; wn = 1;...

6日 前 | 0

回答済み
how to write sqrtroot power 7 ?
@Grégoire, If you mean this function: then you can use the function handle: g = @(x) (sqrt(14*x - 7)).^7; x = 0.5:0.01:...

6日 前 | 1

回答済み
Different results between Step and Stepinfo
Hi @Gerard Carroll The main reason behind the difference in the step-response characteristics between Approach 1 (from Transfer...

6日 前 | 0

回答済み
How do I deploy singleton membership function in fuzzy logic output
Hi @Evans Here's how you can create fuzzy singleton membership functions. In this code snippet, I'm using three singletons. % ...

6日 前 | 0

回答済み
Hello, please can you help me to solve the error in this code below!!!!
Hi @yousra yahia I'm not entirely certain about the purpose of your code since some lines appear to deviate from the strict rul...

7日 前 | 0

回答済み
The distance traveled by a ball falling in the air is given by the equation x = x_{0} + v_{0}*t + 1/2 * a * t ^ 2
Hi @Felix Jim It might be beneficial for you to explore how to utilize MATLAB for solving dynamical equations, particularly whe...

7日 前 | 0

回答済み
What would be the equation of the following surface?
You can probably try this quadratic function , where is a constant, and , . Update 1: Another candidate function for the surfa...

7日 前 | 0

| 採用済み

回答済み
how to write a complex transfer function
Ensure no space in . numerator = [-10.45 -10.53 -.2246 0]; denominator = [0 1 1.2116 -.1087-.0909j]; sys = tf(num...

8日 前 | 0

| 採用済み

回答済み
I am having trouble to define in matlab the transfer function of the following block diagram.
Hi @Jake In order to obtain the transfer function of the plant, you can likely perform the algebraic manipulations in the manne...

11日 前 | 1

回答済み
LQR for nonlinear system is running but not tracking
Hi @Kamal I wanted to bring to your attention that the controllability matrix does not meet the requirement of full row rank. I...

11日 前 | 0

| 採用済み

回答済み
Index exceeds the number of array elements. Index must not exceed 1.
Hi @Deepti t I would recommend calculating the ITAE (Integral of Time-weighted Absolute Error) within the Simulink model and co...

21日 前 | 0

回答済み
Learn Optimization Techniques with MATLAB
Hi @Donne If this is indeed a static optimization problem, the minimization of the volume of the cone clutch can be achieved by...

21日 前 | 0

回答済み
How to solve 'out of memory' problem while solving coupled differential equation ?
Hi @Golam I have a suspicion that the main issue lies in the state equation of , possibly due to the excessively large values o...

23日 前 | 0

| 採用済み

さらに読み込む