답변 있음
Trouble graphing. My function is not appearing.
Hi @Alex Chen If you want to see the asymptote, perhaps use fplot() instead. https://www.mathworks.com/help/matlab/ref/fplot.h...

4년 초과 전 | 2

| 수락됨

답변 있음
Please explain this code about differential equations.
@Mr.DDWW The code is annotated now. Hopefully sufficient for you to understand. By the way, I've fixed the plot line because yo...

4년 초과 전 | 0

답변 있음
Help solving differential equations
Hi @Juan Lara Alcaraz Since you have written the code for the differential equations, function dydt = odefcn(t, y) dyd...

4년 초과 전 | 1

| 수락됨

답변 있음
How can I calculate the value in an equation?
@Ali Deniz Please verify if the nonlinear equation is correct. Looks like there are no real solutions for this one.

4년 초과 전 | 2

| 수락됨

답변 있음
how to develop brand new optimization algorithm in Matlab like black widow optimization, cuckoo optimization etc.
Hi @harsh Brar If you are into the nature-inspired optimization algorithms, then become an Observer to study the survival, hunt...

4년 초과 전 | 2

| 수락됨

답변 있음
'step()' and 'tf()' not working on MATLAB 2022?
Hi @Tom Bienas The step() and tf() functions require the Control System Toolbox. You can enter this to determine if the Licen...

4년 초과 전 | 0

답변 있음
I want to change my code to a code like the one in the picture below, but how can I modify it?
Hi @EonYak Kang Looks like a signal modulation problem in Communications Engineering. If my guess is correct, then is the Mod...

4년 초과 전 | 1

답변 있음
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...

4년 초과 전 | 0

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

4년 초과 전 | 1

답변 있음
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...

4년 초과 전 | 0

답변 있음
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). ...

4년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

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

4년 초과 전 | 0

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

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

4년 초과 전 | 1

| 수락됨

더 보기