Risposto
Multiple Bandpass Filter Creation
fs = 16e3; %range = [50 8000]; CF1=linspace(50, 8000, 32) -50; CF2=linspace(50, 8000, 32) +50; Can't use the first and las...

oltre 2 anni fa | 1

| accettato

Risposto
Calculus Variational; code for finding the value of two constants for 2 values of the variable
Boundary conditions can be specified in the call to dsolve syms x(t) f = diff(x,t)^2+10*t*x eqn = functionalDerivative(f,x) ...

oltre 2 anni fa | 2

Risposto
Pole Placement Techniques Part 2
Hi MUHAMMAD, See some comments interspersed with the code below. clc; clear Here, we define the sysem in original form. % (1...

oltre 2 anni fa | 0

| accettato

Risposto
Structured H infinity synthesis can't find a controller that makes closed loop stable even with an asymptotically stable plant?
Hi Vinh, I'll say up front that I don't have a complete solution to your problem, but I have an observation that I'm pretty sur...

oltre 2 anni fa | 1

| accettato

Risposto
Regarding Pole Placement Techniques
A = [0 -83.33; 500 -10]; B = [166.67; 0]; C = [0 1]; D = 0; %Create state-space and convert to transfer function sys = ss(A...

oltre 2 anni fa | 1

| accettato

Risposto
phase jumps in dtft
n=-20:20; w=-2.5*pi:.01:2.5*pi; x1=zeros(size(n)); x1(n>=-2 & n<=2)=1; % x1(19:23)=1; Matlab doesn't have a function dtft. ...

oltre 2 anni fa | 0

Risposto
How can I add two fft functions?
Hi Anagha A=1; t=0:0.001:0.1; Here, the sampling frquency is 1000 Hz ... but the frequency of x is 1046 Hz. Assuming x shoul...

oltre 2 anni fa | 0

| accettato

Risposto
Comparing Analog Butterworth vs Bessel Filters shows large differences in coefficients and filtered data.
Hi Xavier, For "an analog Butterworth" filter, the code would be (butter) % All frequency values are in Hz. Fs = 20000; % Sa...

oltre 2 anni fa | 0

| accettato

Domanda


Why Does Format of Data Returned from readtable() Depend on Import Options that are Not VariableTypes?
Here is the file type text1.csv When read without options, the table output is as expected. t1 = readtable('text1.csv') But ...

oltre 2 anni fa | 2 risposte | 1

2

risposte

Risposto
Apply Filter to Signal
I think this is the correct way to generate the output signal fs = 16e3; t = 0:(1/fs):1; % not defined in question numFilts=...

oltre 2 anni fa | 1

| accettato

Risposto
LQI with time-delay system
Yes, if using a Pade apporoximant for the time delay, then the Q matrix will have to be expanded to include the additional state...

oltre 2 anni fa | 0

Risposto
Error in port widths or dimensions.
If it makes sense that the outputs of each Fuzzy Logic Controller is 3, then there is a problem at the the output of the highlig...

oltre 2 anni fa | 0

Risposto
I have logged a signal from simulink to workspace in timeseries format and got 317 samples of that signal. Can i increase the number of samples i get or the sampling rate?
More samples of the logged signal can be collected by settng the Sample Time of the To Workspsace block to whatever sample time ...

oltre 2 anni fa | 0

Risposto
How to plot this equation
syms U Delta beta T k_beta U = -Delta/2*tanh(beta*Delta/2) UoverDelta = U/Delta UoverDelta = subs(UoverDelta,beta,inv(k_beta*...

oltre 2 anni fa | 0

Risposto
Derive function handle with a vector input argument
Hi Majeed, Maybe you're looking for something like this? q = [3 2 2 3]; p = sym('p',[1 4]); syms x y f = p(1)*x.^2+p(2).*y....

oltre 2 anni fa | 0

Risposto
Load timeseries data from workspace for non-periodic data
In the Model Configuration parameters, change the Input field under Load From Workspace from ts to addsample(ts,'Data',ts.Data...

oltre 2 anni fa | 0

| accettato

Risposto
how to use freqz function correctly
If x is a digitalFilter object, then freqz can be called as freqz(x,f,fs); where f is vector of frequencies of interest to vis...

oltre 2 anni fa | 0

Risposto
How to get the value of slopes of pchip at the enpoints?
The doc page pchip (under the Output Arguments, pp section) shows how the interpolationg polynominal is formed for each interval...

oltre 2 anni fa | 1

| accettato

Risposto
Struct as mask input
I did the following: 1) created a model child.slx. It has an Inport -> Gain -> Outport. The gain parameter is set to 'paramet...

oltre 2 anni fa | 0

| accettato

Risposto
Getting complex solution with Matlab ode45
It looks like your differential equation is very sensitive (I mean that loosely) A=-4.32; B=4; C=1.2; D=0.8; a=0.2778; ode...

oltre 2 anni fa | 0

Risposto
two output in one scope
The easiest way is to log each signal in their respective .mdl file, simulate each, and then plot from the base workspace.

oltre 2 anni fa | 1

| accettato

Domanda


Why are the Corners Shaded in the Model Reference Block?
Consider the block diagram at this doc link for model referencing. Why are the corner triangles shaded in the block for Counter...

oltre 2 anni fa | 1 risposta | 0

1

risposta

Risposto
The problem with "contains"
Might not be faster, but .... LongStrings={'Apples are red' 'Lemons are yellow' 'Cucmbers are green' 'Some numbers are odd' 'Th...

oltre 2 anni fa | 0

| accettato

Risposto
I my tried to use for loop to find a transfer function and root louces
I think that rlocus(TF3) clears the figure and then overwrites, so I think you're actually getting the root locus for the last v...

oltre 2 anni fa | 1

| accettato

Risposto
Undefined function 'dksyn' for input arguments of type 'ss'. Error in Report8 (line 41) [k, cl, bnd] = dksyn ( G, 1, 1)
According to the doc page dksyn, the first input to the dksyn has to be a uss model, not an ss model. Mabye G should be built us...

oltre 2 anni fa | 0

| accettato

Risposto
Quicker way to subtract large vectors using a sliding window?
Hi goc3, Using filter seems to be a lot faster than the loop method 1 for Example 1. I didn't compare to the other loop method...

oltre 2 anni fa | 1

| accettato

Risposto
Error in port widths or dimensions
The system has 3 inputs, 2 outputs, and 2 states. The gain multiplications by A, B, C, and D need to be matrix*vector multiplica...

oltre 2 anni fa | 0

| accettato

Risposto
I need to find the transfer function of the close loop with the two variables gains using Simulink and math formulation
Hi ahmad, Neither Simulink nor the Control System Toolbox support any model with symbolic parameters. In both tools, everything...

oltre 2 anni fa | 0

| accettato

Risposto
In between the years, a PISA question (nothing essential): The last digit of 7^190
Well, if 7^190 is larger than realmax, then using double precison won't work to just try to compute it. You could try the Symbol...

oltre 2 anni fa | 0

| accettato

Risposto
How to add disturbance feedforward to LQI()
Hi John I don't udnerstand your observations absent additional information. If the control input includes the negative of the d...

oltre 2 anni fa | 1

| accettato

Carica altro