已回答
Problem with signal processing on sinewave using Simulink
You can set the sample time in sine wave block to (2*pi)/32 to get 32 samples of sine waves per cycle as input to your function ...

1 year 前 | 0

已回答
fitting curve for Simulink
You can use the Matlab Function block and define the function as per your need : function y = process_pid_output(u) if u ...

1 year 前 | 0

已回答
How to rotate a T-Junction using MATLAB code?
To rotate the T-junction block in Simulink/Simscape so that the C port is on the left, you can use the command 'set(gcb,'orienta...

1 year 前 | 0

已回答
How do i model a non linear differential equation in simulink?
Taking u(t) as unit step, you can shift x'''(t) one side and u^2(t) to the other and try the following : where fcn is Matlab...

1 year 前 | 0

| 已接受

已回答
Index in position 1 is invalid. Array indices must be positive integers or logical values. Error in PROYEK (line 78) distance = jarak_pelanggan(last_point, pelanggan_
last_point here contains a value of 0 when the code runs and matlab indexing starts with 1, hence the error : while ~isempty(...

1 year 前 | 0

已回答
Problems using Plot function
If you want to plot all A B C on the same plot you can use hold on like this : A=[1.1,1.2,1.3]; B=[2.1,2.2,2.3]; C=[3.1,3.2,3...

1 year 前 | 0

已回答
Plot data and keep the maximum values
you can try and fit a regression line to the scatter plot of your data to obtain a simple curve that approximates the trend in y...

1 year 前 | 1

已回答
How can I get the number of values within a range?
Your code is almost correct. You just need to update the values of lo_edge and hi_edge inside the loop to reflect the new range....

1 year 前 | 1

已回答
how to consider only the integer part discarding the exponent part
What you can do is multiply "a" with 10^9 first and then proceed to find max(a). Like this : a = [1 23 56]*10^(-9); % given ar...

1 year 前 | 0

已回答
Solving a complicated symbolic equation
You can do the following : syms x; A = 3; B = 9; solution = vpasolve(B*x*sinh(x)==A, x, 1) The vpasolve function allows yo...

1 year 前 | 1