Answered
When i run the code, i dont see any plot, and i'm not sure why?
Hi @Aeshasvi Bhajan If you insert this line: increment = 0; before this: m = 0.5 + increment; % Units are in SI then you ca...

4 years ago | 1

Answered
u t( ) = 0 produce a MATLAB script which, for user specified input values of R, L and C, and user specified input values of initial voltage(across the capacitor)and current
Hi @David Sudan You can follow some examples in this documentation: https://www.mathworks.com/help/matlab/ref/ode45.html and ...

4 years ago | 0

Answered
Direction field and phase potrait
Hi @Tuân Nguyen You can basically plot the direction field like this: [A, L] = meshgrid(0.1:10/14:10.1, -5:10/14:5); M = (- 0...

4 years ago | 1

| accepted

Answered
How to find matrix S, given by this equation
@NA, thanks for your clarification on the dimensions. Is this some kind of a Linear Algebra problem? It seems that the square...

4 years ago | 0

Answered
Find intersections of curves
@Shahd Kasas Try performing analysis on the problem first, before quickly attempting to solve it. The hyperbolic sine is unboun...

4 years ago | 0

Answered
As of early 2018,Usain Bolt holds the worlds record in the men's 100 meter dash. It is 9.58 sec. What was his average speed in km/hr.? Assign the result to variable in hundred
@Hindol Halder velocity_ms = 100/9.58 velocity_kmh = velocity_ms*(60*60)/1000 What exactly is your problem in converting m/s ...

4 years ago | 0

Answered
solving the differential equation
Hi Ms. @Hannah Mohebi You did not specify what happen in these two regions and . Furthermore, no useful info about other param...

4 years ago | 0

Answered
Aerospace blocksets toolbox / Orbit propagator
@KRALFALLAH Mansour The Orbit Propagator block is introduced in R2020b. https://www.mathworks.com/help/aeroblks/orbitpropaga...

4 years ago | 0

Answered
Image processing fuzzy logic
@Ali Alomar So now you have the image pixel data, and you want send the data to the fuzzy system for character recognition and ...

4 years ago | 1

Answered
Solving Differential equations of a modified SIR model
Hi @ELUFISAN PAUL TOMILOLA The simulation shows some results, although I didn't check/compare your equations with the standard ...

4 years ago | 0

Answered
Graphing a 2nd order ODE
Hi @Kyle Brahm I did something similar moment ago in a separate question. Perhaps you can refer to that and apply your own para...

4 years ago | 0

Answered
Why are there negative PID coefficients?
Hi @Maaz Madha You have to look into the plant transfer function first. On the denominator, the 's' can be factored out. On the...

4 years ago | 1

| accepted

Answered
how to solve this second differential equation mx"+cx'+kx+kx^3=f0cos(wt)(I am stuck)
Hi @seoung gi Sin I have fixed the state matrix and remove the unnecessary parameters. Now it should work properly. Dynamics:...

4 years ago | 1

Answered
Graphing cylinders on same axis
Hi @Ikenna Iwudike Can you try using this code to show your how your cylinders look like? Then we see the region that you want ...

4 years ago | 1

| accepted

Answered
finding if number(iteration) is the sum of 2 numbers inside same array - matlab
Hi @Oren Savir This is just a very simple example. You can turn it into a loop to check each element in the array. % The array...

4 years ago | 0

Answered
Multiplying f(x) with f(-x)
Hi @Omar Decevic You can try this and take over from here: x = -16:0.01:16; f = @(x) x.^3 + 15*x.^2 + 7*x + 2; plot(x, f(x)....

4 years ago | 0

Answered
Add an optimization algorithm to simulink
Hi @Hend Mostafa Please follow the example here: https://www.mathworks.com/help/physmod/sps/ug/battery-parameter-extraction-fr...

4 years ago | 1

| accepted

Answered
Temperature matrix giving NaN
@Mohammad Hassan The T matrix gives NaN because the temperature T is an array of zeros to begin with T = zeros(nx, nt); and...

4 years ago | 1

| accepted

Answered
delete or remove some value from vector
Hi @Takim Mustakim Perhaps you can try this to see if it is deleted. wk(end) = []

4 years ago | 1

| accepted

Answered
Im solving for the EOM of a 3 DOF vibrations problem with ode 45 and am having trouble getting the indices to agree when I try to store the equations in my ydot term.
Hi @CARSON KATZ Should be working now. However, it is observed that your stiffness matrix is a Tridiagonal matrix, while your ...

4 years ago | 1

| accepted

Answered
Tuning PID using GA for multiple plants
Hi @SM For multiobjective optimization, then you should consider using this gamultiobj() command. https://www.mathworks.com/he...

4 years ago | 1

| accepted

Answered
How to convert SDOF system to MDOF system of Nonlinear Dynamic analysis of a building
@Chaudhary P Patel I'm not a certified Building Dynamicist. But if the equations of motion of a 4-storey building can described...

4 years ago | 0

Answered
Output a plot and a matrix from a function
Hi @Miranda Gabriel Remove the semicolon ";" in this line should produce mymatrix on the Command Window. mymatrix = [locs(:), ...

4 years ago | 0

Answered
I want to plot an implicit equation
Hi @mohd ayaz I tried to plot this way to first visualize how the curve looks like for the positive part of . Qm = linspace(-1...

4 years ago | 1

Answered
How to deal with the time response of first order system?
@Cola, let's correct your Simulink model first. The ODE is given by which can be rearranged into Integrating both sides a...

4 years ago | 2

| accepted

Answered
Plotting streamlines in an unsteady flow given vector field equation
@Kiat Tsen Lim Since it involves the time dimension, I think you will need to use the quiver3() function. https://www.mathwork...

4 years ago | 1

| accepted

Answered
How can I create a function with several summations and Kronecker delta symbol in two dimension?
@matlab beginner Have you tried this kroneckerDelta() function? https://www.mathworks.com/help/symbolic/sym.kroneckerdelta.htm...

4 years ago | 1

Answered
Sigma-delta ADC under simscape
@Peter Balazovic Found an example model here. Do you think you can remodel it with the Simscape blocks? https://www.mathworks....

4 years ago | 0

Answered
Create a long rectangular signal with a function handle
@AEW Second opinion! fcn = @(t) (sign(sin(2*pi*t)) + 1)/2; ezplot(fcn, 0, 5)

4 years ago | 1

Answered
ode return NaN :(
Hi @ZH CC The odeToVectorField(eqn) returns this V = ...

4 years ago | 1

| accepted

Load more