Answered
How to write function for SIMULINK model and it's variables
Hi Azin For example only. Explore it. https://www.mathworks.com/help/simulink/slref/matlabfunction.html function [V, tau] = s...

4 years ago | 0

Answered
How to see the value of outputs in ANFIS
Hi @redha wassim brahimi You can use this function called evalfis() . This syntax is given below: output = evalfis(fis, input)...

4 years ago | 1

| accepted

Answered
Plotting Graph in Matlab
@Vartika Agarwal Suggest a simple solution: t1 = 70:81; t2 = 81:85; t3 = 85:100; plot(t1, t1, 'b', t2, t2, 'b--', t3, t3, '...

4 years ago | 1

| accepted

Answered
how to plots these values?
Hi @Rakesh Roshan Hope this helps! % Data S = [-0.0032 -0.0045 -0.0056]; F = [8 9 10]; % creating plots figure(1) plot(...

4 years ago | 0

Answered
I want to create sliders for different parameters
Hi @Marco Zanasco Check out uislider if you want to create slider component. The example should be helpful. https://www.mathwo...

4 years ago | 0

Answered
Calculate swath area of a satellite
Hi @Andrea Curatolo I don't have Wert's Handbook with me right. But I have found something from the Radar Toolbox that might be...

4 years ago | 0

Answered
Input an array to transfer function block in simulink
@ANAND NALE I don't remember that the Transfer Function block works as a MISO system. If you think that all 20 inputs are fed ...

4 years ago | 0

Answered
How to plot this equation if C is 4?
@ken Alternatively, you may use fplot for an overview. fplot(@(t) (5*t.^2)./(t.^5 + 4), [-6 6])

4 years ago | 1

Answered
how do I make this signal look like a rectangular pulse?
@Kwaku Junior Maybe like this? t = linspace(0, 400, 40001); u1 = heaviside(t - 185); u2 = heaviside(t - 210); u = u1 - u2; ...

4 years ago | 1

| accepted

Answered
How to solve matrix in characteristic equation?
Hi @Tianyi Chai This is actually very easy if you know algebra and solving simultaneous equations on the desired characteristic...

4 years ago | 2

| accepted

Answered
How to correct the code?
Hi @susan sara Adding these lines should work n = 1; h = repmat({true(n)}, 7, 1); Output = A(logical(blkdiag(h{:}))) Output...

4 years ago | 2

| accepted

Answered
How can i fix this error ?
@Do Son Try this: % to formulate ODE syms s t y(t) Y(s) D1y = diff(y); D2y = diff(D1y); Eqn = D2y + 2*D1y == 8*t % to ...

4 years ago | 2

| accepted

Answered
performing linear regression fits using cftool based on data points
@Jamie Al Does it look like this? x = [398 292 352 575 568 450 550 408 484 350 503 600 600]; y = [0.15 0.05 0.23 0.43 0.2...

4 years ago | 1

| accepted

Answered
How i can solve limit this ODE question .
Looks like the population saturates at 1 million. t = linspace(0, 1500); P = (3000000*exp(t/100))./(997 + 3*exp(t/100)); plot...

4 years ago | 0

Answered
Using ode45 to solve 2nd order nonlinear ODE
Hi @Fue Xiong You actually need to formulate the simultaneous problem first function F = simulprob(x) F(1) = sqrt(x(1)^...

4 years ago | 0

Answered
how to plot negative frequency in x axis ?
@Belal Ahmed This impulse response can plotted by following the example here: https://www.mathworks.com/help/control/ref/lti.i...

4 years ago | 1

| accepted

Answered
How to zoom on a particular portion of the graph?
Hi @SOMNATH MAHATO After the xlim line, enter this: p = get(gca, 'Position'); h = axes('Parent', gcf, 'Position', [p(1)+.06 p...

4 years ago | 1

| accepted

Answered
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 years ago | 2

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 2

| accepted

Answered
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 years ago | 2

| accepted

Answered
'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 years ago | 0

Answered
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 years ago | 1

Answered
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 years ago | 0

Answered
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 years ago | 1

Answered
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 years ago | 0

Answered
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 years ago | 1

| accepted

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

Load more