Frage


Finding the magnitude of an expression
Supposing that x can be expressed as a function of t as follows how can its magnitude be found using Matlab? For example, is the...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Using blkbuild with symbolic functions to find the transfer function of a block diagram
In the block diagram represented by the following code blocks 1 to 7 are defined as x, where x is a symbolic variable. When the ...

mehr als 3 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Reduce block diagrams symbolically
Can the code below be modified to find the transfer function in terms of symbolic functions g1 to g5 instead of numeric function...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Analytically finding the roots of polynomials with symbolic variables
I am trying to solve a cubic equation with symbolic variables, but Matlab is not able to find an analytical solution. syms a l...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Matlab unable to find solution to cubic polynomial
The following cubic equation has three roots. syms a solve((1225*a)/2 - 6125 == ((2*a - 35)^2*(60*a + 4200))/840, a) Matlab...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Error message when trying to tune a PID controller
When trying to tune a PID controller in Simulink, I am encountering the following error. Does anyone have any suggestions on how...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Simulink plotting solutions to nonlinear differential equations
I am trying to plot 1+cos(x(t)) = x'(t) in Simulink. Is this the correct way to do so?

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Plotting a discrete impulse in Simulink
I am trying to plot a discrete impulse, but the plot is not that expected. The values of y should be 10 for x = 1, and 0 otherwi...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Plotting solutions of differential equations in Simulink
The following Simulink model solves the differential equation t - 4x(t) = x''(t), and generates the plot below for x(t). But the...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Solving differential equations with Simulink
Can someone explain what differential equation is being solved below? The input is a ramp input.

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Transfer functions in Matlab
Given the differential equation diff(c,t,1) + 2*c(t) = r(t) I want to isolate r(t)/c(t) assuming the initial conditions are 0. C...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Finding the derivative of a function with respect to the derivative of a variable
I am trying to derive the expression that contains a dependent variable x with respect to the derivative of x, but although I de...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Simplifying solution of a differential equation
The most simplified version of ySol(t), the solution to the differential equation below, is 1.5*sin(2t+0.7297), but the output o...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Solving equations using Laplace transform
I am trying to solve an equation using the Laplace transform without having to find the Laplace transforms of the terms in the e...

mehr als 3 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Simplifying output involving heaviside discontinuity functions
I wrote a program to find the discontinuity function of a beam. The output for the shear function was f = (12*heaviside(x - 5/2...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Getting started with simulink tutorial cannot reproduce the results
I was watching the tutorial at https://www.mathworks.com/videos/getting-started-with-simulink-part-4-tuning-a-pid-controller-150...

mehr als 3 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Simplifying output involving symbolic variables
The eigenvalue and eigenvector expressions generated by the following code are expressions that are not fully simplified. Can so...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Using dsolve to solve a system of differential equations analytically
When trying to solve a system analytically using dsolve, Matlab outputs that x is an empty function handle. Can someone explain ...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Creating a symbolic array
When I tried to create an array consisting of expressions in terms of a symbolic variable I get the error message Unable to co...

mehr als 3 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


Displaying symbolic function with decimal number instead of fractional coefficients
The following code outputs a symbolic function with fractional coefficients, but I want it to display the coefficients as floati...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Polynomial as product of two vectors
I am trying to display a polynomial as the product of two vectors. a = [1 2 3 4 ]; syms x f = [x,x^3,x,x^3]'; a.*f The...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Accessing elements of built in primes function
How can the a particular prime of the primes function, which returns a double, be accessed? primes(15) class(primes(15))

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Finding all the zeroes of a discontinuous function in a particular range
I am trying to find the zeroes of the following symbolic function. syms x moment =20*heaviside(x - 8)*(x - 8) - (3*x^2*heavis...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Determining the roots, maxima, and minima of a discontinuous symbolic function
How can the roots of the following discontinuity function be determined? syms x f =(x^3*heaviside(x))/18 - (3*x^2*heaviside(...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Evaluating a symbolic heaviside function using subs at points where disconuities are located
When trying to evaluate a symbolic function, Matlab outputs 'Nan' when it encounters discontinuities. syms x f = 22*heavisid...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Solve a system of nonlinear equations symbolically
The following code is meant to solve a system of nonlinear equations. syms do K eq1 =(5e-5)^2 - (do)^2 == K*25*60; eq2 = (7....

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Plotting the heaviside discontinuity function
The plot generated by the following code is not always the same and sometimes somewhat inaccurate. For example, there should be ...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Array indices must be positive integers or logical values error when using cell arrays
The following code is supposed to add a function of x to a function handle f whose coefficients depend on the entries of a cell ...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Accessing 1 by n array from a cell array
The output of the following code is the cell array poh. Is there a way to instead access the first subarray {'poh',3,4.56} throu...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Accessing elements of lists within lists
I have created a list which contains several lists in the following code. a = [{'poh',3,4},{'v',5}] a=[{'poh',3,4},{'v',5}] ...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Mehr laden