Answered
Denominator for the nth order inertial term.
Understood your question correctly, that would be somewhat like e.g.: num = 1.0506; SYS = tf(num, [1 1 1 1 1 1/4]); % 5th ord...

10 månader ago | 0

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

10 månader ago | 0

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

10 månader ago | 1

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

10 månader ago | 0

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

10 månader ago | 0

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

10 månader ago | 0

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

10 månader ago | 0

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

10 månader ago | 0

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

10 månader ago | 0

| accepted

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

10 månader ago | 1

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

10 månader ago | 1

| accepted

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

10 månader ago | 0

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

10 månader ago | 0

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

10 månader ago | 0

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

10 månader ago | 0

Answered
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};...

10 månader ago | 0

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

10 månader ago | 1

Answered
Literature for Neural Networks in Regression Learner
Here are a few documentations for regression learner: DOC1 DOC2 DOC3

10 månader ago | 0

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

10 månader ago | 0

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

10 månader ago | 0

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

11 månader ago | 0

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

11 månader ago | 0

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

11 månader ago | 0

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

11 månader ago | 0

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

11 månader ago | 0

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

11 månader ago | 0

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

11 månader ago | 0

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

11 månader ago | 0

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

11 månader ago | 1

Answered
Loglikelihood calculation for fitnlm
See this example of MATLAB help documentation for nonlinear logistic regression.

11 månader ago | 0

Load more