Respondida
Replacing elements in a vector
array1 = [1 2; 4 2; 5 5; 4 2]; vector1 = [2 1 1 4 3 4]; result = [2 1; 4 1; 3 3; 4 1] result1 = vector1(array1)

casi 4 años hace | 0

| aceptada

Respondida
Creating a string with Permutation
Hi hazmah, Is this what you're looking for? Axes_name = string({'sint0.2';'sint0.5';'sint0.7'}) fold_2 = string({'BCA';'BPCA'...

casi 4 años hace | 0

Respondida
Visualising symbols inside the tranfer fcn block in Simulink
Make the Transfer Fcn block a little bit bigger by selecting it and stretching it with the mouse.

casi 4 años hace | 0

| aceptada

Respondida
get specific magnitude response value given a specific frequency from a freqz graph
freqz accepts a third argument that allows the user to specify the desired angular frequencies to evaluate (it must have at leas...

casi 4 años hace | 0

Respondida
Why I get two different covariance matrix?
Hi Ali, Perhaps Prof. Ng has some additional assumptions about the data that aren't included in your question. To compute the c...

alrededor de 4 años hace | 1

| aceptada

Respondida
Viewing .slx model figue without Simulink
Can you use Simulink Online ?

alrededor de 4 años hace | 0

Respondida
Is it possible to solve multiple linear systems of equations in parallel with one matrix operation?
Hi Bill, pagemldivide introduced in 2022a can do the trick. Whether or not this is really better than the loop .... Aa = [ 0.8...

alrededor de 4 años hace | 0

| aceptada

Respondida
I should convolve my signal with which function to have the signal itself?
Hi Donya, dirac is only defined in the Symbolic Math Toolbox and so should only be used for symbolic math, and only for continu...

alrededor de 4 años hace | 0

Respondida
Error when taking the continuous time Fourier transform
Using some examle data ... A = 1:5; std_A = 11:15; syms t w real f(t) = sum(exp(-t./A))*heaviside(t) std_ft(t) = sqrt(sum((...

alrededor de 4 años hace | 0

| aceptada

Respondida
How to model second order nonliniar in simulink
Hi Barak Bar-on, I depends on the form of the matrices and what you consider easy. If you already have a .m function in Matlab...

alrededor de 4 años hace | 0

Respondida
how to load this function into simulink
Hi arsal Though not required, you can replace the function making_values_input with a Mux block. Double click on predictActivi...

alrededor de 4 años hace | 0

Respondida
Applying an anti-aliasing filter
I think all that we are seeing is the effect of sampling the contiuous signal, nothing to do with aliasing. Let's look at just ...

alrededor de 4 años hace | 0

| aceptada

Respondida
How to calculate the 95% (area under the curve) of Kernel probability density curve?
The function icdf can find the values of x such that P(X < x) = 0.05 and 0.95. Use those values with xline to add the vertical ...

alrededor de 4 años hace | 0

| aceptada

Respondida
How to transfer output from simulink into m-file in real time
Asusming the loop only needs the output of the simulation after the simulation completes ... Use the sim command.

alrededor de 4 años hace | 0

Respondida
Using the lowpass function
The only way to suppress the plot output is to specify at least one output argument (or use lowpass() in an expression, like 1*l...

alrededor de 4 años hace | 0

Respondida
looking for a way to find the largest input from 10 signals in simulink
How about the MinMax block?

alrededor de 4 años hace | 0

| aceptada

Respondida
FFT giving undesired answer
Hi Cole, As you've already accepted an answer, perhaps you already have what you need. But I thought it might be helpful to add...

alrededor de 4 años hace | 0

Respondida
How to use Convolution in Simulink?
I think this model does what you're looking for. Here is the model that uses the convolution sum to approximate the convolution...

alrededor de 4 años hace | 0

Respondida
Sensitivity analysis in simulink
This page might be of interest.

alrededor de 4 años hace | 0

Respondida
Compute Probability of a Multivariate Normal Distribution over Polytope
Hi Michael, If A is nonsingular, perhaps a change of coordinates will work % z = A*x muz = A*mux; Sigmaz = A*Sigmax*A.'; Pr...

alrededor de 4 años hace | 0

Respondida
Warning: Imaginary parts of complex X and/or Y arguments ignored.
Hi Matthew, Why is dhdt the output argument of this line? [t, dhdt] = ode45(@thesis, tspan, [240]); Shouldn't this be [t, h]...

alrededor de 4 años hace | 1

| aceptada

Respondida
how to inverse transfer function simulink
Hi Stanley. First off you'll need to factor out the exp(-s) and implement that with a Transport Delay block. For the non-prope...

alrededor de 4 años hace | 0

Respondida
Transformation of state space model
It sounds like the Question is about forming a feedback loop. In this case use feedback.

alrededor de 4 años hace | 0

Respondida
How to do Feedback Loop on Simulink with different frequinces
I'm assuming the question is how to run the same simulation multiple times for different frequencies. With this assumption .... ...

alrededor de 4 años hace | 2

Respondida
How to generate all possible vectors where each element can take one of two values
a = [1 2 3]; b = [4 5 6]; n = numel(a); C = mat2cell([a; b],2,ones(1,n)); [D{1:n}] = ndgrid(C{:}); E = sortrows(cell2mat(...

alrededor de 4 años hace | 0

| aceptada

Respondida
how to find the right frequency axis when we take the Fourier transform of a function?
Hi Donya, By default, the frequency variable for fourier in the Symbolic Math Toolbox is in rad/sec. Also, Matlab definition o...

alrededor de 4 años hace | 2

| aceptada

Respondida
Pade approximant in Transport delay block
What exactly is the confusion? Increasing the order of the Pade approximant should have no effect on simulation run time or sim...

alrededor de 4 años hace | 0

| aceptada

Respondida
Discrete values in DFT
Hi Sahil, In general: Let x(t) be a continuous-time signal, i.e., where the inedpendent variable, t, is any real number with -...

alrededor de 4 años hace | 1

| aceptada

Respondida
matlabFunction() generating intermediate terms that place the integrand outside integral()
A couple of suggestions on the code. As a general rule IMO, it's best to specify all relevant assumptions on the variables. For...

alrededor de 4 años hace | 1

| aceptada

Respondida
help in runge kutta 4 2nd order with establishing the functions
Ok. Let y1 = q and let y2 = qdot (or y2 = q and y1 = qdot if preferred) Then the first equation we need is y1dot = qdot = y2. ...

alrededor de 4 años hace | 0

Cargar más