Answered
Using Euler method to solve second order ODE
Hi @Yuval Levy Some minor issues. If you use Euler's method and you want to simulate for a relatively long duration, then you n...

4 years ago | 2

| accepted

Answered
how to solve the program?
Hi @prajith samraj Try manipulating the parameters to get different results. % Solver tspan = [0 20]; x10 = 0.11; x2...

4 years ago | 2

| accepted

Answered
Please help me solve this differential equation
Hi @Armel Kapso Some basic code from the ode45 documentation. Probably looks like this, try manupulating the parameters yoursel...

4 years ago | 1

| accepted

Answered
Fuzzy controller warning solving
Hi @Andrea Tonelli Basically, it implies that your fuzzy system is not designed properly. Yes, it can run, but the defuzzified ...

4 years ago | 0

Answered
RMS of Piecewise Function
@Smitty Can you check if this is the expected RMS value over the interval ? t = linspace(0, 2, 2001); y = - sin(2*pi/8*t); v...

4 years ago | 1

| accepted

Answered
Produce a graph with the increase of the temperature in the compartment over the time, for 4 different types of fire.
Hi @hugo harel Try experementing the code. This should be simple enough for you to understand % Slow Fire T1 = 1493.97719; t...

4 years ago | 0

Answered
please give me the ansdwers
@ABHIJITH Try experimenting the code. n = 3; for i = 1:n N = rand(1,i); end N

4 years ago | 0

| accepted

Answered
Ploting Intersection point of three circles
Hi @Talha Sami Didn't change your code except for adding the minus signs and swapping the symbols in the two formulas. See @Joh...

4 years ago | 1

Answered
specify the number of iterations in genetic algorithm matlab (ga)
Hi @mohammed hussein Here is a simple example where you can vary MaxGene and check the accuracy of the result. fun = @objf...

4 years ago | 1

| accepted

Answered
how do i write planck's blackbody formula in matlab?
If your equation is mathematically correct as given, then it should be like this: E = (()./(L.^5)).*(1./exp(((h*c)./(L))*k*...

4 years ago | 0

Answered
How to create this matrix ?
@Akash Pal Despite the Matrix Law forbids the operation, we can nearly always perform miracles with MATLAB, so long as you give...

4 years ago | 1

Answered
How does the pressure change with time?
Hi @sanjeet mansoor I'm unfamiliar with your Hydraulic system. If the system is correctly described by the following equation ...

4 years ago | 0

Answered
I need the code to convert shown file extracted from LTSpice into a bode plot in Matlab, please. I have access to the Control Systems toolbox, if it helps.
@Muhammad Abdullah, Not an expert in LTSpice and I'm not familiar with the outputs of LTSpice shown in the Project.txt. Howev...

4 years ago | 1

| accepted

Answered
Gensurf / Axis Limitations
Hi @Fatih Yigit This should do the trick that you desire: fis = readfis('InventoryManagementv2'); [X, Y, Z] = gensurf(fis); ...

4 years ago | 1

| accepted

Answered
How to use ga multiobjective optimisation in new matlab optimize live editor?
@ARJUN GUPTA, it seems that the error message tries to tell you that it found the first undefined symbol omega in the constraint...

4 years ago | 0

Answered
How to convert this equation to code?
Hi Bruh, First, it's because you used the Python code. Second, bracket issue. Try this instead: x.*sqrt((16 - x.^2).^3)

4 years ago | 0

Answered
Find peaks in data without using signal processing tool
Hi @Harsimran Singh If the data is not too large, you can test features of the findpeaks() function in this forum. Else, you c...

4 years ago | 1

Answered
Simscape Onramp Project - Electronic Valve Section: fail to set the degree conversion
Hi @Federico Manfrin Can you find this Radians to Degrees block?

4 years ago | 1

Answered
How to plot frequency response, phase response from transfer function
Hi @shahril majid Thanks for link. I used the code and it works. Now, try yours. z = tf('z',-1); H = tf((0.0534*(1+z^-1)*(1-1...

4 years ago | 0

Answered
how to plot the function
Hi @Satyajit Kumar Follow me, type this out using this example. Then, you put your equation that you want to plot on the x–y p...

4 years ago | 1

| accepted

Answered
find an optimal value for t(time) on interval [t_min, t_max]
@Hashir Roshin Valiya Parambil I think I get what you mean. However, without understanding the nature of your problem, it is di...

4 years ago | 1

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 2

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 1

Answered
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 years ago | 2

| accepted

Answered
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 years ago | 1

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 2

Load more