Question

Inconsistency of angle function in finding angle of vectors

Typing the command angle(1+i) yields an angle of 45 degrees, but typing angle(-1-2i) yields -2.0344. Why is the angle being meas...

5 days ago | 2 answers | 0

Question

Plotting responses other than step responses to transfer function

I am trying to plot the response of a transfer function to an arbitrary input. The step response can be plotted as shown below. ...

8 days ago | 1 answer | 0

Question

Find range of values of independent variable so the dependent variable is in a certain range

Given a function for example f(x) = x^3+x^5 is there a way you can determine all values of x such that the absolute value of f(x...

27 days ago | 1 answer | 0

Question

Finding the ramp response to a transfer function

If T is the transfer function defined below, how do you find the ramp response? G = tf(poly([-2 -3]),poly([0 -1])); T=feedback(...

1 month ago | 1 answer | 0

Question

More accurate alternative to rlocfind to analyze root locus in control systems engineering

To find the gain at the point where the root locus intersects a line of constant damping ratio, the rlocfind function can be use...

1 month ago | 0 answers | 0

Question

Using deconv to divide vectors if the numerator has a smaller degree than the denominator

When using deconv to divide two vectors the output is 0 if the numerator has a smaller degree than the denominator. Can you get ...

1 month ago | 1 answer | 0

Question

Dividing two vectors of different sizes

If you have two vectors a = [1 2 1]; b = [1 1] that represent polynomials can you divide a by b to get [1 1] as the answer, sinc...

1 month ago | 1 answer | 0

Question

Convert a structure array to a list

I am trying to convert a structure array into a list rather than a cell to be able to perform operations such as finding the inv...

1 month ago | 1 answer | 0

Question

Unable to convert expression containing symbolic variables into double array error

I am trying to define a vector xdd in terms of another vector x but when I define elements of the vector xdd in terms of the cor...

1 month ago | 1 answer | 0

Question

Finding inverse Laplace when the inverse Laplace function is a piecewise function

I wrote the following Matlab program to find x in the time domain. syms y(t) m k x c w F s eqn = s^2*x-s+2*s*x-2+2*x == exp...

1 month ago | 1 answer | 0

Question

Displaying a group of vectors on separate lines

I am trying to display a number of vectors in separate lines. How can you create a matrix with each its rows equal to one a grou...

2 months ago | 1 answer | 0

Question

Solve for a variable in terms of specific other variables

The derivative of eq1 below is diff(x(t), t) == diff(y(t), t). I am trying to use the solve function to solve for diff(y(t)) and...

2 months ago | 1 answer | 0

Question

Solving differential equations and specifying initial conditions

Given an equation, can you solve for the derivatives of certain quantities in terms of the other variables? For example in the f...

2 months ago | 0 answers | 0

Question

Check for missing argument or incorrect argument data type in call to function 'solve'. error

I am trying to solve for a variable using the solve command. I know I can do so symbollically, but I want to first intiailize th...

2 months ago | 1 answer | 0

Question

Finding a closed form solution of nonlinear differential equation

Can you find an expression for x, which is a function of t, given that sin(x*t) + t^2*cos(3*t^2)+x''(t) = 5x (x''(t) is the seco...

2 months ago | 1 answer | 0

Question

Plotting path traced by a point in an animation

The following code creates an animation of a four bar linkage. Can someone explain how you can modify the code to plot the path ...

2 months ago | 1 answer | 0

Question

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

2 months ago | 1 answer | 0

Question

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

2 months ago | 0 answers | 0

Question

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

2 months ago | 1 answer | 0

Question

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

2 months ago | 1 answer | 0

Question

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

2 months ago | 1 answer | 0

Question

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

3 months ago | 1 answer | 0

Question

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?

3 months ago | 1 answer | 0

Question

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

3 months ago | 1 answer | 0

Question

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

3 months ago | 0 answers | 0

Question

Solving differential equations with Simulink

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

3 months ago | 1 answer | 0

Question

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

3 months ago | 1 answer | 0

Question

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

3 months ago | 1 answer | 0