# Sam Chak

**Statistics**

**MATLAB Answers**

**0** Questions

**1.478** Answers

RANK**52**

of 287.895

REPUTATION**3.530**

CONTRIBUTIONS

**0** Questions

**1.478** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**741**

RANK

of 19.433

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

RANK

of 141.817

CONTRIBUTIONS

**0** Problems

**0** Solutions

SCORE**0**

NUMBER OF BADGES**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Circular shifting or rotating structure of array elements

Hi @NALLARASU KRISH Me, first time using circshift(). So, I'm not entirely sure about your intention. Are you suggesting to swa...

ongeveer 19 uur ago | 1

Simulation of control system with only matlab script withou simulink

Hi @Kamal, The Reactor system seems to exhibit stability even without any control inputs (u1 = u4 = 0). I'm curious about what ...

ongeveer 22 uur ago | 0

| accepted

How to solve a system of ODEs using ode23s with multiple inputs.

Hi @Ron_S I simply wanted to ensure that the code was functioning correctly with the given external inputs. Therefore, I didn't...

2 dagen ago | 1

plotting a simple constant

Hi @Robert Before I discovered other special non-math functions like ones() and yline(), I used to rely on certain math tricks,...

3 dagen ago | 0

How to find transfer function to a second order ODE having a constant term?

Hi @PONNADA This type of differential equation is commonly encountered in examples involving an ideal undamped mass-spring syst...

3 dagen ago | 0

| accepted

ANFIS EDIT out of memory

Hi @Antonio Abela You mentioned that there are 10 inputs and 1 output. However, in the CSV file, there are 15 columns, with eac...

4 dagen ago | 0

How can I adjust the PID values in Simulink?

Hi @Elli I faced difficulties in effectively stabilizing the unstable 3rd-order system using solely the PID controller. Even th...

4 dagen ago | 0

How can I adjust the PID values in Simulink?

Hi @Elli, The 3rd-order linearized system is unstable because the second transfer function has a pole located in the right half...

5 dagen ago | 0

| accepted

How to run an ODE Function with a variable outside of the Differential Equation

@Adam, Do you expect the results as shown? figure hold on; R0 = .3; L = 2*pi*R0; Q = 0.01; x = 0:0.001:L; % I = - 4e8...

6 dagen ago | 0

| accepted

2% and 5% settling times

Hi @Daniel The intellectual explanation for the discrepancy could be that one of the settling times was measured incorrectly. T...

6 dagen ago | 0

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 ...

7 dagen ago | 1

| accepted

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...

7 dagen ago | 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...

7 dagen ago | 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...

8 dagen ago | 0

| accepted

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...

8 dagen ago | 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 ...

8 dagen ago | 0

| accepted

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...

8 dagen ago | 0

| accepted

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...

9 dagen ago | 1

| accepted

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...

9 dagen ago | 0

| accepted

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...

9 dagen ago | 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. ...

9 dagen ago | 0

why is it so?

Hi @Sadiq Akbar If nonlinear inequality constraints are not available, you can disable them in the code. It appears that the up...

10 dagen ago | 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...

10 dagen ago | 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...

10 dagen ago | 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...

11 dagen ago | 1

Simulink integrator error, please help

Hi @Federico Ennio, Considering the system dynamics, the controller can be designed as follows , where , , . Ho...

11 dagen ago | 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....

12 dagen ago | 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;...

12 dagen ago | 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:...

12 dagen ago | 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...

12 dagen ago | 0