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

4 years ago | 0

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

4 years ago | 1

| accepted

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

4 years ago | 0

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

4 years ago | 1

| accepted

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

4 years ago | 1

| accepted

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 1

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

4 years ago | 1

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 2

Answered
Calculate solar zenith angle
Hi @Arvind Gauns I did a web search and found the formula. It's a little strange that your browser didn't show references/guide...

4 years ago | 1

Answered
Create function that functionally same to polyfit
@종석 박 I find it a little strange. Should your Intructor/Professor send you to learn the essentials through MATLAB Onramp at the...

4 years ago | 0

Answered
how to solve an equation by using trial and error method?
@Ali Deniz I'm not sure what the trial-and-error method is for this, but I think that basic Algebraic methods can be used to re...

4 years ago | 1

| accepted

Answered
Who can help me with my convolution code please?
@Loh Sheng Ting, I look at your code directly (that is related to Question b) and it looks okay. step = 0.01; t = -5:step:5; ...

4 years ago | 0

Answered
is there a way to obtain F(-x) polynomial
@ali temsah Alternatively, the same you've got F(x). H(x) = poly2sym(f, -x)

4 years ago | 1

Answered
Why Does My Plot Not Match My Numbers?
Hi @Nick Moffatt Since the values for the parameters are not provided, they are assumed in the following, which should give you...

4 years ago | 0

Answered
Earthquake simulation - finite elements method
Hey @Steph Moty I remember seeing this book "MATLAB Codes for Finite Element Analysis: Solids and Structures" in the library. ...

4 years ago | 0

Answered
Can you help please?
Hi @Konian Jean Philippe Lionnel Moro Please find out relevant info about Newton-Raphson method here, and see if helps you in w...

4 years ago | 2

| accepted

Answered
Find using the method of Newton-Raphson (h(𝛼) = 𝑓(𝛼) − 𝑔(𝛼)) the two solutions with a tolerance equal 10-8.
Hi @saher haz I'm unsure if I understand your question clearly. But you can definitely find some info about Newton-Raphson meth...

4 years ago | 0

Answered
write a MATLAB code to find the largest element in an array of 10 elements then check whether the number is ODD or EVEN Note: use only (for-loop and if-statement) method t
Hi @3lewwi I think the advice was misconstrued. Generally, the forum moderators never know whether it is a school homework or a...

4 years ago | 0

Answered
Control System for a Thermoelectric Cooler in Matlab & Simulink
Hi @Nicholas Zanon Since you have found the use of Peltier Device as a Thermoelectric Cooler, then try connecting a controller ...

4 years ago | 0

Answered
fit a sine wave to a set of data points
Hi @C.G. I've got this. What do you get? General model Sin8: f(x) = a1*sin(b1*x+c1) + a2*sin(b2...

4 years ago | 0

Answered
How to detect vehicle from a video using MATLAB?
Hi @Kiran Das You can learn to use deep learning for training a vision-based vehicle detector. See a working example here: htt...

4 years ago | 0

Answered
How to plug in and solve for algebraic equation?
Hi @Meet Koradia The idea is to reverse the equality in , and then isolate to the left-hand side. You can solve this algebra p...

4 years ago | 0

Answered
Help on suitable Simulink Blocks to use
@Williams, this is good. If you have the algorithm, generally, it should simplify things in Simulink. Simulink has a block that...

4 years ago | 1

| accepted

Answered
unit step function to MATLAB
Hi @Faisal Al-Wazir Unit Step function defined for negative time? clear all; clc t = -6:0.0001:6; x = 2.5*(sign(t - -0.5) -...

4 years ago | 1

| accepted

Answered
applying newton's method
Hi @Romaisa Abdeselam Lazrak You can find the examples related to Newton-Raphson method in this link: https://www.mathworks.co...

4 years ago | 0

Answered
How to implement the given equation in MATLAB?
Thanks @chaaru datta. But the data you shared are non-copyable because they are images. You can click the MATLAB code button an...

4 years ago | 1

| accepted

Load more