Risposto
plot two input of matlab function in simulink
@Zainab Alnassar You can stick with your custom function for plotting the phase portrait: function out = fcn(x, y) plot...

circa 4 anni fa | 0

Risposto
System of Differential Equations
Hi @Caleb Rudick For numerical solution, I used the example in the ode45 documentation and inserted your parameters. The equati...

circa 4 anni fa | 1

Risposto
Damped Harmonic Oscillator fitting for data set
Hi @Sofia Stepanoff I think it pretty much depends on the custom nonlinear model that you supply to the fit() algorithm, as wel...

circa 4 anni fa | 0

Risposto
how can I make the curves smoother? please help
Hi @MAYED ALSHEHHI Edit these two lines to increase number of elements and you will get the smooth curves (not crisp anymore). ...

circa 4 anni fa | 1

| accettato

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

circa 4 anni fa | 1

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

circa 4 anni fa | 0

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

circa 4 anni fa | 1

| accettato

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

circa 4 anni fa | 0

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

circa 4 anni fa | 0

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

circa 4 anni fa | 0

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

circa 4 anni fa | 0

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

circa 4 anni fa | 0

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

circa 4 anni fa | 1

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

circa 4 anni fa | 0

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

circa 4 anni fa | 0

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

circa 4 anni fa | 1

| accettato

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

circa 4 anni fa | 1

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

circa 4 anni fa | 1

| accettato

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

circa 4 anni fa | 0

Risposto
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)....

circa 4 anni fa | 0

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

circa 4 anni fa | 1

| accettato

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

circa 4 anni fa | 1

| accettato

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

circa 4 anni fa | 1

| accettato

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

circa 4 anni fa | 1

| accettato

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

circa 4 anni fa | 1

| accettato

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

circa 4 anni fa | 0

Risposto
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(:), ...

circa 4 anni fa | 0

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

circa 4 anni fa | 1

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

circa 4 anni fa | 2

| accettato

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

circa 4 anni fa | 1

| accettato

Carica altro