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

4 months ago | 1 answer | 0

1

answer

Question


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

4 months ago | 1 answer | 0

1

answer

Question


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

4 months ago | 1 answer | 0

1

answer

Question


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

4 months ago | 0 answers | 0

0

answers

Question


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

4 months ago | 0 answers | 0

0

answers

Question


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

4 months ago | 1 answer | 0

1

answer

Question


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

5 months ago | 1 answer | 0

1

answer

Question


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

6 months ago | 3 answers | 0

3

answers

Question


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

6 months ago | 1 answer | 0

1

answer

Question


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

6 months ago | 1 answer | 0

1

answer

Question


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

6 months ago | 1 answer | 0

1

answer

Question


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

7 months ago | 1 answer | 0

1

answer

Question


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

7 months ago | 1 answer | 0

1

answer

Question


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

7 months ago | 1 answer | 0

1

answer

Question


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

7 months ago | 1 answer | 0

1

answer

Question


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

7 months ago | 1 answer | 0

1

answer

Question


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

7 months ago | 1 answer | 0

1

answer

Question


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

7 months ago | 1 answer | 0

1

answer

Question


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

7 months ago | 1 answer | 0

1

answer

Question


Function to chop a decimal to a variable number of digits
I wrote the following function to approximate a number using chopping arithmetic. chop(5,4.333352312) function output = ...

8 months ago | 2 answers | 0

2

answers

Question


Format coefficients of the derivative of a function
The following code is meant to output the derivative of a function but the coefficients are displayed as fractions even when I t...

8 months ago | 1 answer | 0

1

answer

Question


Incorrect plot domain when using linspace
The plot generated by the following code should have a domain from 0 to 5 but instead each x value is multiplied by a factor of ...

8 months ago | 1 answer | 0

1

answer

Question


Finding x and y values of a point on a Simulink plot
I am trying to determine the x and y values of certain points on a Simulink temperature entropy plot. Normally when I hover over...

8 months ago | 1 answer | 0

1

answer

Question


Modelling Open Circuit Test of Single Phase Transformer using Simulink
I am trying to model the open and short circuit tests using Simulink but certain blocks and objects are missing. For example, wh...

8 months ago | 1 answer | 0

1

answer

Question


Format a matrix with entries displayed as exact values
I am trying to print a matrix with its entries displayed as exact values not fractional approximations. For example, the followi...

8 months ago | 1 answer | 0

1

answer

Question


Using plot3 to plot 3d vectors
The following code is meant to plot the vectors (4,5,6), (-3,6,-3) and (1,2,3) directed from the origin. plot3([0 4], [0 5], ...

8 months ago | 1 answer | 0

1

answer

Question


Saving a file in Matlab R2020a
I recently installed Matlab R2020a on my Windows 10 laptop and whenever I create a script or function file and click "Run" I am ...

8 months ago | 1 answer | 0

1

answer

Question


Cannot call or index into a temporary array error message
I am trying to access the elements of a 1 by 2 variable that is defined by a function handle, p2r, but when I define a separate ...

1 year ago | 1 answer | 0

1

answer

Question


Solving a system of equations involving complex numbers
The following code outputs a value for a and b with respect to the imaginary number i but the output is not fully simplified wit...

1 year ago | 1 answer | 0

1

answer

Question


Simplifying solution to algebraic system of equations
The following code outputs a value for a and b with respect to the imaginary number i but the output is not fully simplified wit...

1 year ago | 1 answer | 0

1

answer

Load more