Risposto
does anyone has the Matlab code for photovoltaic maximum power point tracking using simulated annealing algorithm?
Hi @Shema If you are looking for the Maximum Power Point Tracking model, then you can find many sample MPPT models in FileExcha...

circa 4 anni fa | 1

| accettato

Risposto
Rearrange an equation to solve for a different variable
@Brian Kirkland If the explicit solution cannot be found, then it is probably a transcendental equation, just like this one: ....

circa 4 anni fa | 0

Risposto
Hi, I have a problem understanding the use of odetovectorfield for converting syms variables into a vector for ODE45 input.
Hi @liouville In order to use odeToVectorField() effectively, the highest-order derivatives must appear linearly, and in your s...

circa 4 anni fa | 1

| accettato

Risposto
Getting a solution for two coupled nonlinear differential equations
@sardar peysin Please check if this works out for your study: A = 1.0; B = 1.0; fun = @(t, x)[-A*x(1)*x(2)^4; % 1st OD...

circa 4 anni fa | 4

| accettato

Risposto
How to solve an equation which includes iteration/summation and with a mixed unknown variable ?
Hi @IQRA KIRAN Not exactly sure how your summation look like. Maybe the LaTeX code is incorrectly entered. Anyhow, if you look...

circa 4 anni fa | 1

Risposto
Secant method numerical analysis
Hi @Andrew242 This is just a sample code using the Secant Method to find the root of the Kepler’s equation: function Demo_Se...

circa 4 anni fa | 0

Risposto
find the coefficients a, b, and c of the quadratic polynomial. that passes through the three points (x, y)
Hi @Sabrina Lozano This problem can be rather easily solved with Curve-Fitting Toolbox with a click of a button or one simple ...

circa 4 anni fa | 0

Risposto
How To Plot Directional Field of 2nd Order Differential Equation IVP
@Jordan Stanley Basically, it should look something like this: [X, Y] = meshgrid(-3:6/14:3, -3:6/14:3); U = Y; %...

circa 4 anni fa | 3

| accettato

Risposto
How to create a Matlab object that simulates a spring-mass system without Simulink
@Mahmoud Elzouka If the spring-mass system is non-stiff, and you want to solve for only one step time, then the conventional Ru...

circa 4 anni fa | 1

| accettato

Risposto
Minimize a function using gradient descent
@Shikhar Singh Let us visualize and formulate the minimization problem first. So you want to start descending from the point , ...

circa 4 anni fa | 1

Risposto
Hello everyone, i have this question which connot solve it ,ot
@Alaa Ahmed Q2 should be super easy because the Switch is OPEN. From Ohm's Law: The program should look like this: V = 5; ...

circa 4 anni fa | 0

Risposto
Tf Function keeps running
@Alessandro Romeo I'm glad that the proposed solution works. Just keep in mind that you don't have to clear all every time. You...

circa 4 anni fa | 1

| accettato

Risposto
Characteristic equation of a transfer function
@Oluwademilade Mustapha Check this code if this is what you want. This is the non-symbolic approach. It is better if you can pr...

circa 4 anni fa | 2

| accettato

Risposto
Plot the function combining an exponential function and a step function
Hi @Nick Please check the piecewise function if it is what you desire. Then, check the equation and the plot. subplot(2, 1, ...

circa 4 anni fa | 1

Risposto
Error in solving using Ode45 initial condition are y(1) = 0, y(2) =0 and y(3) =0.
Hi @Ahmed Adisa You've got the NaN because there is a division-by-zero in Eqn. (1) at the beginning when you set . The closest ...

circa 4 anni fa | 0

Risposto
i need this ex code to solve it in MATLAB (matlab code need help to solve it)
@Raghad Farajallah Just a simple example for page 1: V = (-10 + 10i)/(21 + 2i); I = 1; Z = V/I phasorZ = [abs(Z) angle(Z)]...

circa 4 anni fa | 0

Risposto
How does state space form include input delay in MATLAB?
@Sol Elec If you look at the matrices for the desired state-space system A = 1 2 3 4 3 2 1 2 3 B ...

circa 4 anni fa | 1

| accettato

Risposto
Script run takes too much time
Hi @Azime Beyza Ari Generally, there should be at least three termination conditions (stopping criteria): Stop when maximum nu...

circa 4 anni fa | 0

Risposto
How to write this Matrix form in Matlab?
Hi @mans maqen I show an example for first matrix: H = [1.00 0.82 0.91; 0.08 0.87 0.18; 0.44 0.08 0.26] You can complete the...

circa 4 anni fa | 0

Risposto
Simulink - PID Controller Tuning - Strange graphs
This is strange. I only set the max step size = 1e-3 in the solver config paramaters to produce a smoother output signal. The ...

circa 4 anni fa | 1

Risposto
Simulink - PID Controller Tuning - Strange graphs
Hi @Milan Hrstka The spikes in the your original output signal was caused by the derivative filter in the PID controller block....

circa 4 anni fa | 1

| accettato

Risposto
State space feedback simulink error
@Maaz Madha Please check the Gain Block on the feedback loop. Most likely you performed the multiplication incorrectly.

circa 4 anni fa | 1

| accettato

Risposto
Hi, I have a Matrix of 48 rows and 366 columns. Its a half hourly data actually so (24*2 = 48). Now I need to remove every 2nd row to make it a 24 row Matrix. How to do this?
@Mobashsher Hossain Md Mubin Perhaps, something like this: a = rand(48, 2) a([1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 3...

circa 4 anni fa | 1

| accettato

Risposto
how to write this code ?
@ahmed nasser Looks like the Kirchhoff's voltage law. https://en.wikipedia.org/wiki/Kirchhoff%27s_circuit_laws Are you lookin...

circa 4 anni fa | 0

Risposto
Finding gradient of a part of a graph
@Yen Tien Yap Technically, if is plotted by a function f(x) with a uniform step size h, then you can use the nabla = gradient(...

circa 4 anni fa | 1

| accettato

Risposto
Given the below differential equation representing a continuous-time system, where 𝑦(𝑡) and 𝑥(𝑡) are the system output and input respectively
Hi @bugrahan ilgaz For Q1, I think you can use tf() to build the continuous-time system transfer function and then find its zer...

circa 4 anni fa | 1

| accettato

Risposto
Getting empty solution for second order differential equation
Hi @Gopalji Kalojiya I believe that the question never ask you to find the analytical solution of the damped pendulum system, b...

circa 4 anni fa | 1

Risposto
how i start?
@shamsa khalid I'll give a general idea. You need to search some functions on the help documentation. The chart is essentially...

circa 4 anni fa | 0

Risposto
Solving a System of 2nd Order Nonlinear ODEs
Hi @mpz A few days ago, you have learned how to uncouple the ODEs by using the substitution method in this link: https://www.m...

circa 4 anni fa | 1

| accettato

Risposto
How can i find roots of laplace function?
Hi @cagri sarac If it is already in the transfer function form, then you can use the pole() function to find the roots of the d...

circa 4 anni fa | 0

Carica altro