Community Profile

photo

Bill Tubbs


Last seen: 2 jours ago Active since 2020

Statistics

  • Thankful Level 4
  • Revival Level 2
  • 3 Month Streak
  • First Answer
  • First Review

View badges

Content Feed

View by

Answered
How do I calculate the static Kalman gain (= steady-state Kalman gain)?
In addition to my answer above, I just discovered a special function for Kalman estimator design called dlqe in the Control Syst...

8 jours ago | 0

Answered
How do I calculate the static Kalman gain (= steady-state Kalman gain)?
For the record, I found a way to do it using the idare function (see this material online: hw5sol.pdf from S. Boyd). This is fo...

9 jours ago | 0

Answered
How to avoid duplicating code in the constructor and a reset method of a class with class inheritance.
I found one solution. If you put the reset code in a static method, you can call it from within the constructor. Not sure if th...

19 jours ago | 0

Question


How to avoid duplicating code in the constructor and a reset method of a class with class inheritance.
FYI, I asked a similar question about this problem before but did not get a satisfactory answer so I'll ask it in a different wa...

19 jours ago | 2 answers | 0

2

answers

Answered
Find index to rows of one matrix in another
I figured out the answer: >> [~, idx] = ismember(B, A, 'rows') idx = 1 3 2 2 In case you want to check that all row...

27 jours ago | 0

| accepted

Question


Find index to rows of one matrix in another
Suppose I have two matrices: >> A = eye(3) A = 1 0 0 0 1 0 0 0 1 >> idx = [1 3 2 2]; >> B =...

27 jours ago | 1 answer | 0

1

answer

Question


Reset method being called twice during instantiation of a class instance with inheritance
I'm defining various classes with an inheritance hierarchy and having problems setting up each class's reset method so that it i...

2 mois ago | 1 answer | 0

1

answer

Answered
How to extract matches from results of a regexp match
Here is a one-line solution—it's based on the answer of Stephen23 but instead of finding the matches, it finds the first indeces...

3 mois ago | 0

Question


How to make an inherited immutable super class property mutable in the sub-class?
I have a class which has immutable properties and I want some sub-classes to be able to modify these properties. Obviously it r...

3 mois ago | 1 answer | 0

1

answer

Question


Strings are converted to cells during readtable
I am incrementally saving data to a csv file which includes strings: data = table("string1", "string2"); writetable(data, "dat...

4 mois ago | 2 answers | 0

2

answers

Answered
How do I create one legend for several subplots?
This is a good answer: Raghu S on 30 Aug 2018

4 mois ago | 0

Question


How to extract matches from results of a regexp match
I'm trying to find the columns of a table that match a pattern. This works: col_names = {'X_est_9', 'X_est_10', 'Y_est_9', 'Y...

4 mois ago | 3 answers | 0

3

answers

Question


Is there a built-in function to validate a class property that should be a cell array?
I'm new to classes and learning about how to define properties and validate their values. I have a class with a property A that...

4 mois ago | 3 answers | 1

3

answers

Answered
how to display the results from simulink in a table
I also prefer working with tables and csv files rather than mat files so I wrote a script to convert a Simulink SimulationOutput...

6 mois ago | 0

Question


Simulink vector index assignment / re-ordering using Selector block
I'm trying to merge two vector signals into one vector according to two sets of indices. For example: u_pos = [2 3 4]; du_p...

7 mois ago | 1 answer | 0

1

answer

Answered
Find in a cell array?
Just in case someone comes here looking to do this with a cell array of chars as I was, it's quite easy this way: my_cell_array...

7 mois ago | 2

Answered
How to add a parameter value to the icon of an S-function block
Based on the comments in response to Benjamin's answer, here is the complete and concise answer to the question: First create a...

8 mois ago | 0

| accepted

Question


How to add a parameter value to the icon of an S-function block
I'm new to S-function blocks in Simulink but I've made a working S-function block and now I want to display a value on its icon....

8 mois ago | 2 answers | 0

2

answers

Question


How to store structs and cell arrays of matrices in an S-function's Dwork memory.
I implemented a sophisticated multi-model process observer in MATLAB code using struct objects for convenience. Each struct has ...

8 mois ago | 0 answers | 0

0

answers

Question


Find the minimums along 3rd dimension of an array
I have a 3d array that is constructed from two 2d arrays: a = [1 2 3; 4 5 6; 7 8 9]; b = [1 2 0; 4 0 9; 9 8 9]; c = cat(3,a,b...

10 mois ago | 1 answer | 0

1

answer

Answered
Set Simulink model simulation stop time from m file
You can also do it by passing it as an argument when you run the simulation from the m file: sim_out = sim(sim_model, t_stop)

10 mois ago | 2

Answered
Check for equality in the contents of two arrays ignoring order
I think this might be the answer for case 1 (A & B are sets): A = [1 3]; B = [3 1]; assert(isempty(setxor(A, B))) A = [1 3]; ...

11 mois ago | 0

Question


Check for equality in the contents of two arrays ignoring order
I want to check that the contents of two arrays are equal, ignoring ordering of the elements. I couldn't find an existing answe...

11 mois ago | 3 answers | 0

3

answers

Answered
Importing a Table :: [Variables are been modified by Matlab]
The answer by Steven Lord didn't work for me. I got this error: Error using readtable (line 198) Unknown Parameter 'VariableN...

12 mois ago | 0

Answered
How to round numbers in tables?
Is here a way to use the round function with tables? Simply using round(my_table, 3) does not work: t = array2table(randn(3, 4...

12 mois ago | 0

Question


Is it possible to sample multiple signals at different rates with the extendedKalmanFilter object?
I need to implement an extended Kalman filter in a MATLAB for loop and decided to use the extendedKalmanFilter object. This was ...

12 mois ago | 0 answers | 0

0

answers

Answered
Efficiently calculate exponentially weighted moving averages of matrix?
I find the easiest way is to use a discrete filter. But the input data is in columns here not rows: x = [0 1 1 1 1; 0 0 1 1 1]...

environ un an ago | 0

Question


How to index the values of an array using a series of rows, column indices?
Couldn't find an answer about this and it is not mentioned in the Matlab documentation page on array indexing. I want to know h...

environ un an ago | 1 answer | 0

1

answer

Question


Efficient algorithm to compute only the most probable sequences of a random variable out of all possible sequences
I'm looking for a better way to compute the possible sequences of a random variable whos value at time k is given by. x(k) = 1 ...

plus d'un an ago | 3 answers | 1

3

answers

Question


Waterfall plot not showing correctly
I think this is an undesirable feature of the waterfall plot function and I'm posting it here so that others don't spend as long...

plus d'un an ago | 0 answers | 0

0

answers

Load more