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

más de 2 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...

más de 2 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...

más de 2 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...

más de 2 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...

más de 2 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);...

más de 2 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....

más de 2 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...

más de 2 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...

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

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

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

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

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

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

casi 3 años hace | 1

Respondida
MATLAB code to SIMULINK block ?
One way to get started may be to wrap the ultrasonic sensor code in a function, and call that function from a Simulink MatlabFun...

casi 3 años hace | 0

Respondida
Convolution of function on a non symmetric axis using 'conv'
Hi MMG1 It looks like the code is using the convolution sum to approximate a convolution integral. Is that correct? If so, my c...

casi 3 años hace | 1

Respondida
How to Convert a 3D Matrix into Cell Array of Desire Dimension
A = rand(2,100,500); % example data C = squeeze(num2cell(A,[1 2])); % create cell array whos C isequal(cat(3,C{:}),A) % veri...

casi 3 años hace | 1

| aceptada

Respondida
Matlab giving error for tall array assignment
The code doesn't define a variable named grid. It's getting confused with the function grid

casi 3 años hace | 1

Respondida
How to calculate a double integral with a subfunction?
Hi Dewen Yu, As the error message indicated, the function pattern_element needs to use element-wise math operations to compute ...

casi 3 años hace | 2

Respondida
polar motion seems to be reversely applied to the function "ecef2eci."
Hi Jeongin Yun, Quoting from the question, with emphasis added: "In order to transformate coordinate eci to ecef, it should ro...

casi 3 años hace | 0

Respondida
Insert number in structure array
Hi Chad, If possible, consider changing the structure of your data to arrays that can be indexed, instead of field names that c...

casi 3 años hace | 0

| aceptada

Respondida
how to set a lowpass filter in simulink?
Hi moh mor, The error message from the Lowpass Filter block sounds bit misleading. If you look on the doc page, it says that t...

casi 3 años hace | 1

Respondida
cannot use `lsim()` function properly
Hi 嘉伟, Here is the plant model M = 1.5; m = 0.5; l = 10; g = 9.8; %% state space A = [0 1 0 0; 0 0 m*g/M 0; 0 0 0 1; 0 0 ...

casi 3 años hace | 0

| aceptada

Respondida
Fourier transform of circular convolution is not equal to multiplication of two Fourier transforms?
Hi Khiem, Consider the following to see the difference between circular and linear convolution. N = 32; ...

casi 3 años hace | 1

| aceptada

Respondida
How to do error approximation of a weibull fit in matlab
The Weibull distribution is that of a continuous random variable. Are you trying to compare its fitted pdf with the plot returne...

casi 3 años hace | 0

Respondida
I wonder why the following code is not able to give a valid output? My objective is to solve a system of simultaneous ODEs with dirac comb func.
Hi Mridupawan, It would be helpful if you posted the error that you're getting or otherwise show exactly what the problem is. ...

casi 3 años hace | 0

Respondida
Problem with Kalman Filter and state space model
Hi Tobias, It looks like the state space model is defined in continuous time, but the Kalman filter is a discrete-time implemen...

casi 3 años hace | 1

| aceptada

Respondida
How to calculate real probability of data
"is there a way I can get the probability values in a matrix of the same dimenions as A." The number of bins in the histogram w...

casi 3 años hace | 0

| aceptada

Respondida
Changing initial conditions of a Simulink model when simulating using a for loop
I think you can do what you want using Model Operating points. Here's a doc page to get started. Why do you want to do this: in...

casi 3 años hace | 1

Cargar más