Respondida
PID Controller in Simulink question
Set the 'Source' parameter to 'external' as in doc for PID block. The you can calculate the gains external to the block as funct...

casi 3 años hace | 1

| aceptada

Respondida
Problem in filtering my desired frequency
Hi Abdullah, A couple of issues to address in the anlaysis. I think you started by trying to define an ideal filter in the fre...

casi 3 años hace | 0

| aceptada

Respondida
Problems in dynamic symsum variables in solving a system of equation
Hi Tsz Tsun, Why not just use regular sum instead of symsum when the goal is to just take the sum of a finite number of terms? ...

casi 3 años hace | 2

| aceptada

Respondida
Problem in plotting the convolution
Hi Abdullah, Although not stated explicitly in the Question, I'm going to assume that a) the objective is compute the convolut...

casi 3 años hace | 0

Respondida
how to interpolate stepfunctionresponse
Hi Hassen, I don't undertstand how the matrix i fits into the problem, and I assume that one column of the Matrix is a time vec...

casi 3 años hace | 0

Pregunta


Is there a way to Rewrite a Symbolic Expression in Terms of nthroot?
Suppose I have a symbolic expression syms x real g = x^(1/3) - 1 I'd like to evaluate g for negative values of x, either symb...

casi 3 años hace | 1 respuesta | 0

1

respuesta

Respondida
get x knowing f(x)
finverse works well in this case. syms f(x) y f(x) = exp(x); g(y) = subs(finverse(f),x,y) g(23)

casi 3 años hace | 0

Respondida
acker(): "Error using sym/poly". Why?
Hi John, A = [0 1; -4e5 -400]; B = [0; 4e5]; C = [1 0]; Aaug = [A, zeros(2,1); -C, 0]; Baug = [B; 0]; H = 1.0e+12 *...

casi 3 años hace | 1

| aceptada

Pregunta


What are Your Thoughts on TMW Documentation Linking to the File Exchange
Kind of similar to this Question, I noticed that the Tips section of integral3 cites this File Exchange submission as an option ...

casi 3 años hace | 2 respuestas | 0

2

respuestas

Respondida
Why am I getting different frequency responses for the same filter using bode() and fvtool()?
Hi Rinitha, Here is the design of the low pass filter fs = 500; % Sampling frequency Ts = 1/fs; fc = 100; % Cutoff frequency...

casi 3 años hace | 2

| aceptada

Respondida
Reference Frame for Forces Going into 6DOF (Euler Angles)
According to 6DOF (Euler Angles), the force inputs are the components of the net force resolved in Body Coordinates. If the "Z d...

casi 3 años hace | 0

| aceptada

Pregunta


What are the Pros and Cons of the RandStream Transformation Algorithms?
RandStream objects offer three choices for the transformation algorithm for computing standard normal random variates as shown o...

casi 3 años hace | 1 respuesta | 0

1

respuesta

Respondida
Manually compute LQI() gains using Algebraic Riccati Equation / Hamiltonian
Hi John, I just copy/pasted the code from the question (not the attached .m file) with some semicolons to suppress output and i...

casi 3 años hace | 0

| aceptada

Respondida
Calculating a mean matrix of a cell array
Try mean(cat(3,A{:}),3,'omitnan') The omitnan flag will ignor the nan entries in the computation of the mean.

casi 3 años hace | 0

Respondida
Shift and duplicate values in a data set
Couple of options M = magic(4); Z = zeros(12,4); for ii = 1:3 Z(4*(ii-1)+1:4*(ii-1)+4,:) = [zeros(4,ii-1) M(:,1:end-ii+1...

casi 3 años hace | 0

| aceptada

Respondida
Assign array in field struct
Example data Sis(1).a = 1; Sis(2).a = 2; Sis(3).a = 3; c = [30 40 50]; Assign elements of c to new field of elements of Sis...

casi 3 años hace | 0

| aceptada

Respondida
Why Does get_param(gcb,CompiledPort*) Return Weird Results for Several Object Parameters ?
Thanks to @Andy Bartlett discussion in this thread, and further review the doc, the model has to be put into compile mode before...

casi 3 años hace | 0

| aceptada

Respondida
simulation issue about Scope
Hi wenchao zhang, The Constant block, by default, has a constant sample time. For the model shown, constant sample time means t...

casi 3 años hace | 0

Respondida
How to declare a function as extrinsic and execute it in Simulink through Matlab Function block
Try using coder.extrinsic to declare the wrapper .m function as extrinsic in the Matlab Function block and call the java functio...

casi 3 años hace | 1

| aceptada

Respondida
Create a local system of equations function from a set of anonymous functions
One approach: equations = {'@(x1,x2)x1.^2+x2-6','@(x1,x2)-2.5.*x1+x2.^2-2'};%Set your equations N = numel(equations); f = ce...

casi 3 años hace | 0

Respondida
How to remove struct fields of a specific type
The function class can be used in a loop over the fieldnames to identify the fields to be removed with rmfield. s.w = int32(0);...

casi 3 años hace | 1

| aceptada

Respondida
Understanding the following step in MATLAB
The elements in symbols range from 0 - 3, but Matlab uses 1-based indexing, i.e. the indices int0 constellation can only be 1-4....

alrededor de 3 años hace | 1

Respondida
Can't tell if exprnd is working correctly
Hi Umberto, I modified the code so that the actual figure of merit that is computed is the difference between the running sampl...

alrededor de 3 años hace | 0

Respondida
Andrews plot function for multivariate control chart limits UCL and LCL
Brute force approach ... Use symbolic for illustration syms theta p = 5; A = reshape([sin((1:p)*theta) ; cos((1:p)*theta)],1...

alrededor de 3 años hace | 0

| aceptada

Respondida
varagin with original var names
inputname can be used to return the name of the variable in the calling workspace as a character vector, at least for simple cal...

alrededor de 3 años hace | 1

| aceptada

Pregunta


Is Matlab consistently and correctly handling symbolic expressions that include a dirac function applied at a point of discontinuity?
Is Matlab consistently and correctly handling symbolic expressions that include a dirac function applied at a point of discontin...

alrededor de 3 años hace | 1 respuesta | 0

1

respuesta

Respondida
Matlab's numeric solution to det of Matrix is incorrect
Hi ThanosST, Are you sure the expressions in B are entered correctly? Asking because it sure looks like L = 3.9407 is the solu...

alrededor de 3 años hace | 0

Respondida
Cauchy integral theorem vs. integral formula
Hi Luqman, The numerical integration is using a step size that is proably too large to capture the rapid variation in the integ...

alrededor de 3 años hace | 1

| aceptada

Respondida
Integral and inverse integral
The attachment convolution.jpg is confusing. Equation (15) defines Pf(x) as a convolution. But the unnumbered equation in the ri...

alrededor de 3 años hace | 1

| aceptada

Respondida
Euler's identity with angle in degrees
If the input is given in degrees, consider writing your own function using cosd and sind for accurate results at the 90 deg inte...

alrededor de 3 años hace | 1

Cargar más