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

circa 4 anni fa | 1

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

circa 4 anni fa | 0

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

circa 4 anni fa | 1

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

circa 4 anni fa | 1

| accettato

Risposto
plotting, no graph appears
@Patrick Monst Because you forgot the 'dot' when dividing corresponding elements in the x vector. x = 0:0.01:1; y = (0.5*(1-x...

circa 4 anni fa | 0

Risposto
given the aeeay of angles an = pi/n,n=2,3,...,9.generete a script that computes cos an and display the results as
@Mrunal Shah If you don't want to use the For loop approach, then try this: n = 2:1:9 A = [n; cos(pi./n)]; fprintf('%s %10s\...

circa 4 anni fa | 0

Risposto
How do i get a direction field plot?
Hi @Tuân Nguyen Because there are two equilibrium points and , I think it should look like this. [T, P] = meshgrid(0:6e3/14:6...

circa 4 anni fa | 2

| accettato

Risposto
How to design PI controllers within Maltab?
Hi @Kyle Ramphal If the result from the PID Tuner app can be admitted as the design solution, then just do so to directly obtai...

circa 4 anni fa | 1

| accettato

Risposto
How to solve and graph a second order nonlinear differential equation?
Hi @Parcher Not exactly sure what you are tring to solve, but this worth a try, although it may not be the exact solution that ...

circa 4 anni fa | 0

Risposto
How to solve an equation with two variables?
@Enver Kocaman The surface has singularities because there are conditions that cause , (division-by-zero). The surface shows a...

circa 4 anni fa | 0

Risposto
How to add my IQ samples in Simulink as input data?
Hi @raya alhajri You can load data from MAT file into Simulink model using the "From File" Block directly: https://www.mathwor...

circa 4 anni fa | 0

Risposto
how to collect similar equation and find all of them
@wlat hamad Have you checked if the collect() function works for your case? https://www.mathworks.com/help/symbolic/sym.collec...

circa 4 anni fa | 1

| accettato

Risposto
Print value of correlation to a plot displaying two functions
@Loriann Chevalier Perhaps like this? v = corr(y1,y2,'Type','Kendall'); txt = ['Corr = ', num2str(v)]; text(4, 0.5, txt)

circa 4 anni fa | 0

Risposto
How to do an elimination procedure to represent the solution (matrix)
Can you show the slides and elimination formulas? Otherwise, I think this elimination procedure: A = [1 -2 1; 0 2 -8; ...

circa 4 anni fa | 2

| accettato

Risposto
How to plot two vectors at the same time
@Jonas Morgner, Do you mean llke this? v1 = [1 -2 -5 6]; v2 = -100 : .1 : 100; y = polyval(v1, v2); plot(v2, y)

circa 4 anni fa | 2

| accettato

Risposto
In the fraction formed by the symbolic variable "s", the coefficient is too large and shows as “Inf”, which cannot separate the numerator and denominator. How to simplify it?
@梦雪 王, Have you tried this? sympref('FloatingPointOutput', true) It should display the expression in floating-point format.

circa 4 anni fa | 1

Risposto
Using ‘surf’ plot the surface f (x, y) =x(x^2+y^2).
I guess it's here: z=x.*(x.^2 + y.^2);

circa 4 anni fa | 1

Risposto
Evaluate the expression 𝑦 = 4𝑥3 + 6𝑥2 + 𝑥 + 1 using MATLAB for 𝑥 = 2.
@Muhammad Kashif This is very strictly based how you displayed the equation. x = 2; y = 4*x*3 + 6*x*2 + x + 1 Mostly likel...

circa 4 anni fa | 0

Risposto
Evaluate (3-4i)(-4+3i) in MATLAB.
@Muhammad Kashif You will need a Alphanumeric Keyboard lets the user type in Latin alphabet, numeric characters, and mathemati...

circa 4 anni fa | 1

Risposto
Problem with designing MPC
Hi @Marcin Pilzak Because you need to have the MPC object in the Workspace. And this is how you create a basic one: Plant = tf...

circa 4 anni fa | 0

Risposto
How to find steady state solution of recatti equation
@shahin sharafi You can find the solution for x with the Implicit algebraic Riccati equation solver: [X, K, L] = icare(A_Star,...

circa 4 anni fa | 0

Risposto
how to save variables in a for loop
@ADNAN KIRAL for x =1:5 y(x) = x*x; end disp(y)

circa 4 anni fa | 1

| accettato

Risposto
How to calculate rise time, settling time, and overshoot based on real data measurements
Hi @Konvictus177 The rise time, settling time, and percentage overshoot can directly obtained from measured step response data....

circa 4 anni fa | 1

| accettato

Risposto
Solving a non linear ODE with unknown parameter
Hi @khaoula Oueslati This governing equations are given and you have acquired the data. The objective is want to find . ...

circa 4 anni fa | 0

Risposto
What is this symbol?
@hyun woo ryu It's a Selector. https://www.mathworks.com/help/simulink/slref/selector.html

circa 4 anni fa | 1

| accettato

Risposto
Solve equation by fzeros
@Hoang Vu Huy The fzero requires initial guess. Pick the initial value that is closest to the root: fzero(@(x) x - 4*sin(x), p...

circa 4 anni fa | 1

Risposto
How do I print the solution equation from an ode solver
@Alex Monserrat Use the text() function: tspan = [0 5]; y0 = 0; [t, y] = ode45(@(t,y) 2*t, tspan, y0); % disp([t, y]); plo...

circa 4 anni fa | 1

| accettato

Risposto
How to get area under the fit attained by Curve Fitting tool?
Hi @Anik Mukhopadhyay You can check if this works: t = linspace(0, 270, 10); T = [30 32 34.5 38.6 40 42 42.5 42.5 42 41.5]; ...

circa 4 anni fa | 0

Risposto
Finding the value of the below curve
Hi @Amy Topaz Since the curves are arctangent functions, the max values can be found at the boundary, in this case, that is a11...

circa 4 anni fa | 0

Risposto
how to solve Energy balance equation
@kashif kamal You can use this sample and assign known values to the parameters in the Energy balance equation. % Constants V...

circa 4 anni fa | 1

| accettato

Carica altro