回答済み
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

| 採用済み

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

さらに読み込む