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

4 years ago | 1

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 3

| accepted

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

4 years ago | 1

| accepted

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

4 years ago | 1

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

4 years ago | 0

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

4 years ago | 1

| accepted

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

4 years ago | 2

| accepted

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

4 years ago | 1

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 1

| accepted

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 1

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

4 years ago | 1

| accepted

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

4 years ago | 1

| accepted

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

4 years ago | 1

| accepted

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

4 years ago | 0

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

4 years ago | 1

| accepted

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

4 years ago | 1

| accepted

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

4 years ago | 1

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

4 years ago | 0

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

4 years ago | 1

| accepted

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

4 years ago | 0

Answered
Plot the line Tangent at a given point
Hi @ILoveMath As a self-proclaimed math lover, I presume that you already know mathematically how to find the tangent line by h...

4 years ago | 1

| accepted

Answered
generate a sine wave that ends at 0
Hi @Ali Albaidhani Are you trying to make the Sine wave to hit 0 at the end of the simulation? f = 159.2; % frequency Fs...

4 years ago | 1

| accepted

Answered
How to read The value shown for R in 10^n
Hi @Gabriel Foloni The residue(num, den) function is commonly used in the partial fraction decomposition. The [r, p, k] are a...

4 years ago | 0

Answered
How does the graph look like?
Hi @Thomas Ling Jia Feng I think your problem is related to the convolution of vectors and . Please check if the examples i...

4 years ago | 0

Load more