Respondida
Simulink: how to define variable that will remain constant during duration of simulation and use in MATLAB function blocks
For part a), a Tapped Delay block seems like it meets the need. For part b), in the absence of any other information, feed the ...

casi 3 años hace | 0

| aceptada

Respondida
Huge scaling factor on amplitude in NUFFT vs FFT
In the fft section, the variable dft_trajectory is defined as % dft_trajectory = abs(fft(raw_trajectory(:,i))/m); but t...

casi 3 años hace | 1

Respondida
How to modify H-infinity controller set up to scale controller output?
Hi Jiten, I believe there are some issue with the code, which I've modified as follows. Define the plant b1 = -356.3851; b2 ...

casi 3 años hace | 2

| aceptada

Respondida
Working with cell arrays
example = [ 5 2.3 1.7 5 0.2 9.1 99 3.3 3.6 99 4.1 3.2 99 5.1 2.2 103 1.1 6.8 ]; G = findgroups(example(:,1)); A = spl...

casi 3 años hace | 0

| aceptada

Respondida
Commenting out Simulink block changes in unrelated system
Hi John, Do you have reason to believe that either pair of responses is correct? Just asking because having some idea what the ...

casi 3 años hace | 1

| aceptada

Respondida
Extract contents of cell array based on rows
Without having example data to try .... result = cellfun(@(A) A(:,3)>3,A,'UniformOutput',false);

casi 3 años hace | 0

| aceptada

Respondida
More accurate alternative to rlocfind to analyze root locus in control systems engineering
Link to answer to a similar question

casi 3 años hace | 0

Respondida
How to convert a transfer function into state space representation?
The state space realization of a transfer function is not unique. In fact, there are infinitely many state space realizations t...

casi 3 años hace | 2

Respondida
Storing Arrays in a Matrix
Hi Edoardo, The ; concatenates the elements vertically. Use a , to concatenate horizontally x = (1:3).'; y = (4:6).'; % examp...

casi 3 años hace | 1

| aceptada

Respondida
How can we reduce block diagrams in MATLAB using codes?
Hi Hind, Start with this doc page to see options on how to represent each of the Gi and Hi in the diagram. Then see this doc p...

casi 3 años hace | 0

Respondida
How would I plot signal energy of a .wav file making sure that time is the value of the x-axis?
Hi Andrew, The energy in a signal is a single number, so it's not clear how one would plot that. The instantaneous power is a ...

casi 3 años hace | 0

Respondida
How to find total Steady-State Error due to reference and disturbance
Hi Vivianne, If this problem is to be attacked using the Final Value Theorem, we can proceed either numerically or symbolically...

casi 3 años hace | 1

| aceptada

Respondida
How to change globaly "Sample Time" to milliseconds?
In the Simulink model, you can make the stop time whatever is desired. The simplest way is to just replace the 20.0 with whatev...

casi 3 años hace | 0

Respondida
Simulink Matrix multiply error: unexpected scalar signal mismatch
That block mutiplies the inputs from top to bottom as if they are left to right. So that block is really doing xh * Kx, when y...

casi 3 años hace | 1

| aceptada

Respondida
Frenquency shift between the value and plot
Hi Achraf, The signal p is intended to have frequency content at f1 and f2. lbd1 = 1053; f1 = 3e8/(lbd1*10^-9) and f2 = ...

casi 3 años hace | 0

| aceptada

Respondida
I want to integrate a symbolic matrix numerically. How can I do it??
I don't think there's a function for numerically integrating an arrayvalued function of two variables. Here's a loop approach to...

casi 3 años hace | 0

Respondida
How do I get rid of the sinusoidal wave in my output waveform for fourier series sawtooth waveform?
Hi Chaileen, It looks like you're trying to use a summation like this: for n = 1:8 y2 = y2 + B(n)*sin(2*pi*n*t2/(T0)) en...

casi 3 años hace | 0

Respondida
Find the nonzero maximum frequency corresponding to FFT graph.
If the DC offset is of interest (or even if it isn't) [maxSOa,index] = max(SOa(2:end)); % ignores first point a f=0 F_fake = f...

casi 3 años hace | 0

Respondida
I dont understand why the variable x is incorrect.
Hi Nam, What is the justification for the computation of r(1,:)? If you're trying to find the extrema of J0, why use fsolve to...

casi 3 años hace | 0

Respondida
Programmatically change MATLAB Fcn Block Function Configuration Script
Hi Aarish, This worked for me. config = get_param(gcb,'MATLABFunctionConfiguration'); % Matlab Fcn block selected in Simulink ...

casi 3 años hace | 0

| aceptada

Respondida
Finding intersection of rlocus branch and a line at an angle
One way would be to use the output arguments from rlocus to get the closed loop pole locations and the associated gain. Here's ...

casi 3 años hace | 0

Respondida
Step() not working as expected with USS state space (Uncertain Sys)
Hi John, Disclaimer: I'm not really a user of the Robust Control Toolbox. I'm not quite sure how to interpret the discretizati...

casi 3 años hace | 1

| aceptada

Respondida
Applying array of transform matrices to array of vectors
Check out pagemtimes. Whether or not it's faster than a loop ... would need to be tested on your system D = rand(3,3,700); v ...

casi 3 años hace | 0

| aceptada

Respondida
How to tell if an object is an Uncertain state-space (USS) model?
Hi @John Looks like isuncertain can be used to query if the input is uncertain. Also, there is a function isStateSpace that c...

casi 3 años hace | 1

| aceptada

Respondida
Spectrogram function cutting off beginning and end of signal
Hi Danielle, Create a fake signal using the the parameters in the question downsampledrate = 2e3; rng(100); originalsound = ...

casi 3 años hace | 0

| aceptada

Respondida
Converting frequency domain to Time Domain using IFFT
Hi luo xj, Would need more information on what you have. Here is an example showing how to reconstruct a signal. Maybe it can ...

casi 3 años hace | 1

| aceptada

Respondida
Сan not identify block
Right click on the block and then click on Help, which will take you the doc page for the block.

casi 3 años hace | 0

Respondida
How to handle empty input arguments with the arguments block?
It sees like, at least based on the examples in the Question, the desire is to have a value of empty be overwritten with some ot...

casi 3 años hace | 0

Respondida
Chebyshev smoother, I cannot get this to run, I dont understand why.
Hi Nathan, Can't run the code because not all of the information needed to run it is provided. dtVx = rho*resolx.^2./(4*eta_nb...

casi 3 años hace | 0

| aceptada

Respondida
How can I set this model properties ( Enable model access to base workspace ) by API such as set_param command?
Does set_param('f14','EnableAccessToBaseWorkspace','off') do what you need? Link to Doc Page The doc page says the parameter...

casi 3 años hace | 1

| aceptada

Cargar más