Question


Why Does get_param(gcb,CompiledPort*) Return Weird Results for Several Object Parameters ?
I have the following very simple model that has been compiled and simulated in Normal mode Verify the Constant block is selec...

plus de 3 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Convolution example: inputA[64],InputB[64] and Output[128]
Hi AndyK, I'm going to assume that N = na + nb - 1, where na and nb are the lengths of a[n] and b[n] respectively. Under this a...

plus de 3 ans il y a | 0

Réponse apportée
calculate and fill an area between a line and a curve
Hi Enzo, I think fill is what you might be looking for. Assuming that (x1,y1) and (x2,y2) are points on the blue data curve as ...

plus de 3 ans il y a | 0

Réponse apportée
Plotting a multivariable function, that also has a summation
Hi Ali, Another approach that you might be interested in, which is less code but requires more memory, is to use an anonymous f...

plus de 3 ans il y a | 0

Réponse apportée
How to increase quiver density
Hi Joseph, Use a finer mesh for setting up X and Y: n = 3; m = 1; beta = 3; gamma = 1; alpha1 = 1; alpha2 = 1; startv = ...

plus de 3 ans il y a | 1

Réponse apportée
can program tell if SISO or MIMO
Your code looks correct for determining whether or not a system is SISO G1 = tf([2 0], [1 2]); G2 = tf([1 -1], [1 6 15]); sys...

plus de 3 ans il y a | 0

Réponse apportée
How do I assign a 1x 50 cell array to a struct Scalar structure required for this assignment
Hi Ted, Assuming you want to assign the scalar content of each cell in the cell array a new field in the struct, is this what y...

plus de 3 ans il y a | 0

Réponse apportée
FFT error 'not supported to carry out script fft as a function'
Hi 柊介 小山内, fourier can return a closed form expression with a little help. syms t w f real T = sym(5.0)*10^(-10); roll = sym...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Asking about the ''delayss'' function in matlab
Hi Mohamed, Not sure if this answers your question, but ... The state space matrices shown in the output after using delayss a...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
strange solution of an equation by Symbolic Toolbox
This is interesting. Don't understand why solve appears to be using the 12th root in its solution, looks like it should be the 8...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Error using sym/subsindex when doing convolution of two signals (cosine function and impulse function) in MATLAB.
As written, h is Stem object. However, to use int, h(t) needs to be defined as a symbolic function of t (in the same manner as x...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Find unique column values in NxN cell array
Because the resulting variables could all have a different number of elements, I'm converting each variable into a scalar cell t...

plus de 3 ans il y a | 0

Réponse apportée
Interpolation of cross-correlation from zero padded idft of power spectrum shows odd behavior
Hi matt, I think the issue is with how the padding is being done. See code below for that and other questions. Full disclosure:...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
how to plot a periodic function?
Hi Zafer, To compute the Fourier series, you really only need to define one period of the function, because the defining integr...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to get z transfer function from difference equation?
Hi Vivianne, One workflow would go like this: Define the variables and signals. Note that x is a function of k syms y(k) z x(...

plus de 3 ans il y a | 0

Réponse apportée
Sliding mode control simulink
Hi KAI, Do any of the integrators have a non-zero initial condition? Also, might want to consider using a variable step solver...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Having symbolic in a Matrix
Hi Felis, I didn't run the code because I don't know what inputs to provide. Does changing Z2 to a sym object solve the problem...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Find a specific characters in a string
Hi Miriam I'm not quite sure what you're looking for. However, transforming everything to strings might offer a path forward vi...

plus de 3 ans il y a | 0

Réponse apportée
How to find index of string inside a structure of cell arrays
Hi Andrew, Is this what you're looking for? load(websave('MyStruct.mat','https://www.mathworks.com/matlabcentral/answers/uploa...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Display Block shows truncated data
Hi Gajana, The warning is not telling the full story and may actually be incorrect. Fron the Display block doc page: "The Disp...

plus de 3 ans il y a | 0

Réponse apportée
How to find number of input and output ports of an unknown simulink model ?
Hi Shiv, I started out with this model with three subsystems. Then I ran this code: % Handles to the subsystems subsystems...

plus de 3 ans il y a | 2

| A accepté

Réponse apportée
How to find cumulative distribution function from a given data set(vector)
Hi Shankul, I'm not sure what "I want the cdf vector" means. If that means the data that forms the cdf plot on the graph, then ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Problem passing sine wave through if statement
Hi Matthew, The "Port 1" referenced in the error message is the first output port, not the input port. All output ports from th...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
What is the physical interpretation of sos in Zp2sos function?
Hi Andi, Addresing the second part of your question: " why we need to do this" filtfilt will accept either transfer function (...

plus de 3 ans il y a | 0

Réponse apportée
why does my data kick up at the end after doing ifft(X)
Hi Joanne It will be easier for people to help if you post the data. Use the paper clip icon to attach it to your question as a...

plus de 3 ans il y a | 0

Réponse apportée
How to vectorize a complex function?
Hi Babak, Here is a one line solution. Whether or not it's more efficient/effective/clearer than the loop is an open question. ...

plus de 3 ans il y a | 0

Réponse apportée
Reduce length of sum of products of symbolic variables
Hi Moritz, Would you mind explaining why it's necessary to get the expression into a particular form? Recreating the expressio...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Not able to use the if condition as desired in simulink
The outputs of an If block can only drive If-Action subsystems. At a minimum, the limiter blocks need to be wrapped inside If-Ac...

plus de 3 ans il y a | 0

Réponse apportée
Plotting the frequency response of a bandpass filter around a frequency fc
The code as implemented uses the form of freqz with the w input in normalized frequency in units of rad. The w vector on input r...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
How do I use methods from a class that works in matlab and use it in simulink?
How will the object instances be used in Simulink? This blog post and its follow-ups may be of interest.

plus de 3 ans il y a | 0

| A accepté

Charger plus