Respondida
How can I sum two plots that don´t have the same number of elements?
I think one of the methods is to perform data interpolation using interp1 so that both curves are interpolated at the same point...

alrededor de 4 años hace | 2

| aceptada

Respondida
How to collect and store the coefficient of symbolic differential equation ?
Hi Akash, You can try using coeffs and see if it works for you. Examples are shown in the link. https://www.mathworks.co...

alrededor de 4 años hace | 0

Respondida
Have latex (bold) and variable in legend of a figure
Hi @Miraboreasu I think this should work: legend({'$\left[\frac{t v_{p}}{r_{well}}\right] \left(\Pi_{1}\right)$'}, 'Interprete...

alrededor de 4 años hace | 1

Respondida
Only positive sawtooth wave using simulink
Hi @Logan Das Using the Repeating Seqence Block in this case is much easier in this case, without mental calculations on the am...

alrededor de 4 años hace | 2

| aceptada

Respondida
Not able to find fzero
Hi @Dhawal Beohar Guess the problem that you want to solve is a complex-valued function. function y = difference(u) % param...

alrededor de 4 años hace | 1

Respondida
system of linear differential equation with Runge Kutta Method 4 order
@Diksha Gautam You can follow the examples to use ode45(): https://www.mathworks.com/help/matlab/ref/ode45.html % constants ...

alrededor de 4 años hace | 1

| aceptada

Respondida
How to plot a function
@Nouha Amine You can do something like this: x = 0.1:0.01:10; y1 = x.^(-2.9-0.1); y2 = x.^(-2.9+0.1); plot(x, y1, x, y2) y...

alrededor de 4 años hace | 1

| aceptada

Respondida
PID tuning Gain Scheduling Technique for Temperature Control System
Hi @Isyraf Izuddin Thanks for showing the model of the furnace system. First things first, perform a basic analysis to understa...

alrededor de 4 años hace | 2

| aceptada

Respondida
Why do the eul2quat and quaternion functions differ on the calculated results?
Hi @cui I remember that previously we have talked about that Euler angles and quaternion are not unique. You need to check the ...

alrededor de 4 años hace | 1

Respondida
I have this code how can I do it in simpsons 1/3 and 3/8 rule on matlab
Hi @Gura Gwar Can't remember the Simpson's rules (since you didn't provide the math). But I guess you can find the relationship...

alrededor de 4 años hace | 1

| aceptada

Respondida
ODE friction-vibration system: unable to meet integration tolerances
Hi @Kasidit Suwannagarn Edit: Replaced the previous flawed answer with the system analysis. % constants mp = 0.0075; cp ...

alrededor de 4 años hace | 0

Respondida
How to plot a line with specific line slope ?
But you can only determine the slope if you know the coordinates of the adjacent points. Are you trying to plot the vector of...

más de 4 años hace | 1

Respondida
need help with gauss elimination
Hi @Matt Thomas Can you show the Gaussian elimination method in pen and paper? This is not Gauss method, but requires the Inve...

más de 4 años hace | 0

Respondida
How can I add a Braking System to my Project ?
Hi @Abdelmoughit Miftah It is relatively easy to ADD an existing system into a Simulink file. Find someone who has the Simulin...

más de 4 años hace | 0

Respondida
Motion simulator using simulink
Hi @Wajih IMLIKI You multiply v with v, and then you take a square root of v²? In order to get the absolute value of v? By the ...

más de 4 años hace | 0

Respondida
PID not achieving required results
Hi @Desislava Petkova The Plant (a 3rd-order system) settles at around 123 seconds. s = tf('s'); Gp = 0.047/(s^3 + 3.88*s^2 ...

más de 4 años hace | 2

| aceptada

Respondida
WhatsApp can i do to plot the fonction below respect to the variables x and t
Hi @Thomas TJOCK-MBAGA Are you trying to plot something like this? C = []; X = linspace(0,1,25); T = linspace(0,10,250); fo...

más de 4 años hace | 1

| aceptada

Respondida
How to calculate differential equation with trigonometric function?
With the given ODE function dydx = odefcn(x, y) fcn = 2*x/y + (x^2)*(y^2)*cos(y); dydx = - 1/fcn; end you can...

más de 4 años hace | 1

Respondida
I have created the genetic algorithm program but execution of script ga as a function is not supported error is generated.
Looks like a nested problem where the execution of script creates a circular dependency of stalagmite/ga function outputs and in...

más de 4 años hace | 0

Respondida
Curve Fitting Toolbox do not provide decent fitting. Inf computed by model function, fitting cannot continue. Try using or tightening upper and lower bounds on coefficients.
Hi @Thomas Madoki I think the answer is to "correctly guess" the equation that fits the data by trial-and-error method. If you...

más de 4 años hace | 1

| aceptada

Respondida
Taylor series plotting with an exp function
Hi @Faisal Al-Wazir, Like this acceptable? syms x f = exp(x^2/2) + exp(x)*cos(x); T4 = taylor(f, x, 'Order', 4); T7 = taylo...

más de 4 años hace | 0

Respondida
Random exponential function between two values
Hi @Nicola De Noni Are you looking for an exponential decay like this? t = linspace(0, 3000, 30001); tmin = 50; xmin = 16;...

más de 4 años hace | 1

| aceptada

Respondida
Problem While Doing Libprog (Problem is unbounded)
Hi @Loke Yan Kuang You can also check if a feasible solution exists in other solver such as fmincon. A = [1.0 1.0 1.0 1.0 1.0 ...

más de 4 años hace | 1

| aceptada

Respondida
Lithium Battery Charger Simulation
Hi @Panagiotis Soutzis & @SALAH alatai You can take a look if this example of battery charging in smartphone if helpful https:...

más de 4 años hace | 0

Respondida
Can I formulate an Linear Programming model to determine the optimal pumping for each pumping well?
Hi @KOLA AVINASH RAI Hope the following examples related to solving linear programming problems using the linprog() function in...

más de 4 años hace | 0

Respondida
Hello everyone please I have a problem. How to declare a function with two variables in MATLAB and plot the evolution according to one variable after having fixed the other ??
Because one is 1x25, and the other is 1x500. Now both are 1x100. x = linspace(0, 1, 100); t = linspace(0, 5, 100); y = exp(-...

más de 4 años hace | 1

Respondida
Solving response of tuned mass damper with ODE45
Hi @Frederik Rolighed Christensen Please note that your Tuned Mass–Damper System does not contain any damper. Also check if the...

más de 4 años hace | 1

Respondida
how can i plotting 3d this differantial functions
Hi @Mehmet Aktay The Mass(m)–Damper(c)–Spring(k) system behaves just like , a critically-damped system where and . Therefor...

más de 4 años hace | 0

Respondida
my mathlab didnt read my cftool command, how do i solve it?
Hi @Hafawati Rosdi Please check if a license exists for Curve Fitting Toolbox™. If a license exists, then the status returns 1....

más de 4 años hace | 0

Respondida
How to solve third order equation using ode45
@Álvaro Recalde, I'll show an example from https://www.mathworks.com/help/matlab/ref/ode45.html#bu3uhuk function dydt = odefcn...

más de 4 años hace | 2

Cargar más