回答済み
Normal distance from one curve to another at specific points
@Biraj Khanal If the equations of the curves are unknown, then I guess you can find the Tangent lines to the curves using the g...

約4年 前 | 0

回答済み
Finding of arg max of a function using Gradient descent
Hi @Murali Krishna AG I usually plot the graph if possible before attempting to solve a particular problem. In your case, I'm ...

約4年 前 | 1

| 採用済み

回答済み
I have three coupled differential equation and need help to solve them
Hi @Captain Rituraj Singh After this line [t, Y] = ode45(@(t, Y) odefcn(t, Y), tspan, D); the ode45 solver will generate the ...

約4年 前 | 2

回答済み
How can I solve this coupled non-linear differential equation and graph it?
Dear @Avneet You can start with something like the following. Let us know if the MATLAB code is helpful for a head start. a ...

約4年 前 | 1

| 採用済み

回答済み
Design of sliding mode controller for single phase quasi impedance source inverter simulation model.
@shiv santosh kumar singh Since you didn't provide or explain the mathematical model, then the premise of SMC probably looks so...

約4年 前 | 1

回答済み
custom equation fit - function value and YDATA sizes are not equal
Hi Birsen I think there should be dots here: F = @(x,xdata) (x(1) + (x(2)./(xdata.^2))).*exp(- xdata/x(3));

約4年 前 | 2

| 採用済み

回答済み
Difference between matlab ss function and Simulink State-Space block
Hi @Raymond Wong I have added one line after sys = ss(A,B,C,D,Ts) to determine whether system is stable or not. isstable(sys) ...

約4年 前 | 1

回答済み
I am tyring to implement a code with a loop. But my output variable is a NaN, but it must be a number in output. I am not sure what's wrong. Can anyone help?
@ravi poudel Please check your code if singularity occurs in this line: dydx = (1/2)*ellipse(2)*(1-(x/ellipse(1)^2)^(-0.5))*(-...

約4年 前 | 1

| 採用済み

回答済み
Sigmoid function shaping and fitting by curve-fitting toolbox
Hi @Batuhan Edit 2: Since the shape of the Black curve is preferred, Gompertz function is proposed for the fitting. Click on t...

約4年 前 | 2

回答済み
How can i solve and input this problem
Hi @Nathaniel I use a different example, so that you can try to work on the solution yourself. fun = @(x) exp(x) - (6*x.^2 -...

約4年 前 | 0

回答済み
How to findout this equations value
Hi @Sourasis Chattopadhyay You can try using the solve() command. R12 = 48.6173; % solving Eqn 1 and Eqn 2 simultaneously R2...

約4年 前 | 1

回答済み
How do I perform a segmented regression for linear and exponential piecewise curve
Hi @Luqman There are 3 segments defined over certain intervals of : a constant a straight line and an exponential decay ...

約4年 前 | 0

回答済み
Need help with "Out of memory" error
5 millions of rows... Even Excel cannot handle more than 1,048,576 rows. What is the size of your data array? N = 5e6; n = ro...

約4年 前 | 0

回答済み
Approximating fractional order system to higher order integer order transfer function
Hi @Amarnath K The FOMCON toolbox by @Aleksei Tepljakov is pretty popular for dealing with fractional-order systems. Also chec...

約4年 前 | 0

回答済み
FRF (frequency response function) quarter car
Hi @Federico Paolucci Perhaps you can use this tfestimate() command to estimate the transfer function of quarter car. Examples ...

約4年 前 | 0

回答済み
Given the set X and Y of a circle/ellipse how would you calculate the diameter?
hi @Glypton One way is to fit the data (x, y) using the circle equation model. From the fitted model, you will know the radius...

約4年 前 | 1

| 採用済み

回答済み
Fit a spline function to a set of data points
Hi @Deepa Maheshvare Thought you want the 'spline'? Is there a reason to use the 'linear' method? x = [0, 4, 6, 10, 15, 20];...

約4年 前 | 1

| 採用済み

回答済み
How to represent a curve with straight line segments?
Hi @Luis Eduardo Pacheco González Just wondering if you want to display a smooth sinusoidal curve like this? Or, if you are as...

約4年 前 | 2

| 採用済み

回答済み
How do I plot this piecewise function?
Hi @Zac Because you mispelled 'piecwise'? Anyhow, you can try using one of these methods: t = -3:1e-3:5; %% Method 1 x = ...

約4年 前 | 5

| 採用済み

回答済み
MPC toolbox: implementation of default cost function
Hi @Renate There shoud be a file called mpc_costcomputation. Please check if this is what you are looking for. edit mpc_costco...

約4年 前 | 1

| 採用済み

回答済み
How to utilize dropout to an anfis in MatLab
Hi @Chengxiang Perhaps you can copy the source code from here edit anfis and then paste the anfis code to a new script, where...

約4年 前 | 2

| 採用済み

回答済み
Can anyone please help me in plot of detaec' and taln. In this Iam getting error Error: Invalid expression. When calling a function or indexing a variable, use parentheses. Ot
Hi @Nudrat Sufiyan From your parameters, ThisTerm returns a vector of very small values, because of your chosen value in p. If...

約4年 前 | 1

| 採用済み

回答済み
Build expert system in Matlab
Hi @Sarah Since you now have the idea how to create the rules, then you can build the Expert system.

約4年 前 | 0

回答済み
ODE45: Solving a system of ODEs, except one of the equations changes based on certain parameters. How can I code this?
@Josh Ciesar Assuming that the right direction of the piston is defined by , then this graph shows exactly what you described. ...

約4年 前 | 0

回答済み
bode diagram of the quarter car
Hi @Federico Paolucci Say the car model is given by . Then you can use the bode() function. omega = 1; zeta = 0.125/8; s = ...

約4年 前 | 0

回答済み
square wave not "limited"
@Federico Paolucci Doesn't seem to have any issue. t = linspace(0, 3*pi, 3001)'; f = 2; duty = 50; x = 0.03*square...

約4年 前 | 2

回答済み
how to only plot a certain area of an existing plot
Hi @rman Generally, this imcrop() command is used to crop image, but it can only crop rectangular shape. To crop a circular sh...

約4年 前 | 0

回答済み
How can I output the bode plot of a closed control circuit in simulink?
Hi @3a4 In Calculus, we learned Laplace Transform as a strategy for resolving linear differential equation. Applying Laplace ...

約4年 前 | 1

| 採用済み

回答済み
Math equation for MFCC bit rate
Hi @Jogger If you had begun your journey into the unknown, then perhaps MATLAB Reinforcement Learning Toolbox can help you with...

約4年 前 | 0

回答済み
Please I am working on gait planning but I hwve to determine the position angles
@Eric Andoh Perhaps you can try fitting that using the Sum of Sines Model. https://www.mathworks.com/help/curvefit/sum-of-sine...

約4年 前 | 1

| 採用済み

さらに読み込む