답변 있음
How to find root locus of a polynomial
Step 1. Derive the transfer function of the system. E.g.: T = tf(1, [1 2 3]) Step 2. Use rlocus() or rlocusplot(). E.g.: rlocus...

8개월 전 | 0

답변 있음
How to solve interdependent differtional equations
Here is the corrected code. There were a few syntx errs and missing paranthesis. x= linspace(0, pi); y = [0 1 -1]; SOL=Stra...

8개월 전 | 1

답변 있음
Partial least squares regression
Write your command: [XL, YL, Xs, Ys, Beta, PLSsep] =plsregress(X, y, N, 'CV', F, 'MCReps',100) ; % Note: 'mcreps' vs. 'MCReps'...

8개월 전 | 0

답변 있음
How to adapt code to apply a sine wave input instead
If undrestood correctly, you are trying to simulate the linear system. It can be attained using lsim(), e.g.: t = 0:0.01:10; y...

8개월 전 | 0

답변 있음
Why my graphic always on straight line?
Post your simulink model simulasi.slx. Nobody can guess what you have in your Simulink model.

8개월 전 | 0

답변 있음
Plot a temperature scraped (time control set to 5 minutes) off a weather service?
This is a really interesting exercise. Here is one quick but not sufficiently accurate solution to get the numerical data import...

8개월 전 | 0

답변 있음
I am attempting to code a function with a differential (temperature with respect to time) and i am unsure how to do so
If you are attempting to solve it numerically, you can do so using ode45, ode23, ode113, etc., built in functions. You'd need to...

8개월 전 | 0

답변 있음
Find addresses from one file in another file then save into a third file
(1) That would be helpful to see your sample data file. (2) You can also try contains() fcn as well, e.g.: Match_Row = contai...

8개월 전 | 0

| 수락됨

답변 있음
Request for review of FFT conversion results
The two can be also compared: A = xlsread('2F100.xlsx','0.2m','D3:F812'); t = A(:,1); r = A(:,3); % Remove mean of r r1=r-m...

8개월 전 | 1

답변 있음
Request for review of FFT conversion results
One option is zeroing the DC component by removing the mean of the signal and/or setting DC component equal to zero: A = xlsr...

8개월 전 | 1

| 수락됨

답변 있음
convert the table to matrix
I believe as Madhan pinpointed that you data size should be 256x256x4x1500. Here is the final code: for k = 1:1500 myfilenam...

8개월 전 | 0

답변 있음
How to interpolate 2 dimensions of a 4D array ?
Your data size is [176 238 5 248] and not [176,239,40,248]. In this case, interpolate your multi-D data, griddatan() t...

8개월 전 | 0

답변 있음
how to plot graph using fplot command
It is likely that you have saved one of your MATLAB files by fplot.m name or you have named/stored one of your variables by fplo...

8개월 전 | 0

답변 있음
How to output a for to a 10x27 table (for loop keeps overwriting the variable)
It can be computed using vectorization instead of loop - see this: sigma_x_case1 = @(d, h)122.23*d.*(814.735*d+167.7312*h+335.4...

8개월 전 | 0

답변 있음
I want to save the assigned labels in a 3d scatter plot
If understood your question, is this what you are to get with your plot: D = readtable('DBOOK.xlsx'); X = D{:,2}; Y = D{:,3};...

8개월 전 | 0

답변 있음
When I drag the image, how can I make both the left and right Y-axis move?
One good solution is to download and use these functions created: https://www.mathworks.com/matlabcentral/fileexchange/102945-yy...

8개월 전 | 1

답변 있음
Literature for Neural Networks in Regression Learner
Here are a few documentations for regression learner: DOC1 DOC2 DOC3

8개월 전 | 0

답변 있음
how to plot graph using fplot command
Alt syntax for using fplot is this one: FUN = @(x)exp(x); fplot(FUN), grid on figure % Or a bit better controlled way by spe...

8개월 전 | 0

답변 있음
how should I add to cord
How you are trying to solve your given exercise is not correct. Here is one function that I wrote to simulate the 1 DOF spring...

8개월 전 | 0

답변 있음
Simulink - How to extract the time when the signal is on?
If understood correctly, you want to find out time signals when the response (output) values were non-zero, right? If so, then ...

8개월 전 | 0

답변 있음
simulation of mosfet feedback closed loop circuit using pid
MATLAB has pidtune() function that can be used in your execise - SEE THIS DOC Simulink has single-input and double-input PID co...

8개월 전 | 0

답변 있음
How to plot state/country boundaries over a contour map?
Have you seeen this MATLAB Exchange Contribution code that will help you with your question.

8개월 전 | 0

답변 있음
I need help due to unrecognized function or variable ' x ' error, please.
Put this code in one M-file or MLX editor window, and hit ctrl+enter x = linspace(-10,10); f=randi(15, size(x)); ANSWER = dd(...

8개월 전 | 0

답변 있음
I need help due to unrecognized function or variable ' x ' error, please.
Here is how to call a function x = linspace(-10,10); f=randi(15, size(x)); ANSWER = dd(x,f) function a = dd(x, f) n = lengt...

8개월 전 | 0

답변 있음
terminate loop diverging to inf
There is one critical point is the eps (MATLAB built in var ==> not to use) = 1e-6 is not met. The smallest abs value of z is 0....

8개월 전 | 0

답변 있음
How to plot multi-line graph for nested loop?
From a quick scan the following inconsiostencies are spotted in your code. (1) d_exp is not pre-defined but used in the loop....

8개월 전 | 0

답변 있음
Please help. The first input argument of the "tf" command cannot be a string.
If you want to use a user prompt then it should be in this way (Note that just numerical input prompt won't work): Try: G3N = ...

8개월 전 | 0

답변 있음
how can I calculate a vehicle's axle load distribution and center of gravity changes?
(1) Derive all calculation equations on weight distribution, in other words, the relationship between distributed loads and dist...

8개월 전 | 1

답변 있음
Loglikelihood calculation for fitnlm
See this example of MATLAB help documentation for nonlinear logistic regression.

8개월 전 | 0

답변 있음
Please help. The first input argument of the "tf" command cannot be a string.
Besides of using 'k' for tf, there is another syntax error in T2. See the corrected core here: clear, clc G1=tf([1],[1 0 5]) ...

8개월 전 | 1

더 보기