Community Profile

photo

Bill Tubbs


Last seen: 3일 전 2020 이후 활성

Statistics

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

배지보기

Content Feed

보기 기준

답변 있음
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]; ...

9일 전 | 0

질문


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...

9일 전 | 답변 수: 3 | 0

3

답변

답변 있음
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...

14일 전 | 0

답변 있음
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...

25일 전 | 0

질문


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 ...

27일 전 | 답변 수: 0 | 0

0

답변

답변 있음
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]...

3달 전 | 0

질문


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...

4달 전 | 답변 수: 1 | 0

1

답변

질문


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 ...

4달 전 | 답변 수: 3 | 1

3

답변

질문


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...

4달 전 | 답변 수: 0 | 0

0

답변

질문


Special characters in m-file comments are being removed/replaced
I've noticed that special charactes such as 'Γ' and '│' that I sometimes use in comments in m-files are being removed: % Comput...

4달 전 | 답변 수: 0 | 0

0

답변

답변 있음
How to add variable names for each column when using array2table
I wrote a function to do it: function T = array2table_with_name(X, label, sep) % T = array2table_with_name(X, label) converts ...

4달 전 | 0

질문


Best way to generate an array of all possible integer numbers for a given base and number of digits
I want to prepare an array that contains all combinations in rows of possible sequences represented by an d-digit number of base...

5달 전 | 답변 수: 1 | 0

1

답변

답변 있음
CRL:"Simulation Target IPP BLAS" cannot be found in the registry
Problem was solved for me on Mac OS X by closing MATLAB and all Simulink files and restarting.

5달 전 | 0

답변 있음
How to construct a cell array containing a power series of a matrix
Here is a solution using cellfun: results = cellfun(@(i) A^i, num2cell(1:n), 'UniformOutput', false)

5달 전 | 0

질문


How to construct a cell array containing a power series of a matrix
I want to compute the following power series of a square matrix A (as a preliminary step to constructing a larger matrix using t...

5달 전 | 답변 수: 1 | 0

1

답변

답변 있음
Bypassing the internal (Linear) observer in MPC toolbox 3
Might be 10 years too late but I had this question and it looks like you can set the following check box below in the Simulink M...

5달 전 | 0

답변 있음
How to deal with Extended Kalman Filter in Simulink when my state transition function is given in continuous time form?
Check out the examples in the documentation here: https://www.mathworks.com/help/control/ref/extendedkalmanfilter.html The exa...

6달 전 | 0

답변 있음
Simulink: There is no solver registered as 14.
I don't know exactly what caused this error but I found I could run the msfcn_limintm.m example from the S-functions in the docu...

6달 전 | 0

답변 있음
How are structs handled when passed to a function?
Seems that MATLAB makes a complete copy of a struct when it is passed to a function if any element is changed by the function (s...

6달 전 | 0

질문


Unable to detect datetime or duration data using readtimetable with a seconds index
Here is a toy example of my problem: % Create a timetable with a seconds index data = timetable(seconds(1:3)', randn(3,1), ran...

7달 전 | 답변 수: 1 | 1

1

답변

답변 있음
Find the First element that satisfies a condition
If you only want to find the locations in A where the condition is true and then index those values you can use find: >> elemen...

7달 전 | 0

답변 있음
What is the 'MeasurementFcn1Inputs' input on the Extended Kalman Filter Simulink block?
I found the problem. I was using the same function (robot_outputs) for the NLMPC and the EKF: function y = robot_outputs(x,u) ...

7달 전 | 0

| 수락됨

질문


What is the 'MeasurementFcn1Inputs' input on the Extended Kalman Filter Simulink block?
I'm trying to implement an Extended Kalman Filter Simulink block similar to the example shown for the inverted pendulum here whi...

7달 전 | 답변 수: 1 | 0

1

답변

답변 있음
Get a subset of columns from a timeseries object as a timeseries
Here is my answer to illustrates the timetables solution proposed by @dpb in the comments above. u = timetable(seconds(t),u1,u2...

7달 전 | 0

질문


Get a subset of columns from a timeseries object as a timeseries
I have a timeseries containing data for 4 variables: Ts = 0.2; nT = 50; t = Ts*(0:nT-1)'; u1 = 50*idinput(nT); u2 = 50*idinp...

7달 전 | 답변 수: 2 | 0

2

답변

질문


How to insert the 'double R' symbol in LiveScript (space of real numbers)
Anyone know how to get this symbol in the LiveScript equation editor? MS Equation editor equivalent: \doubleR Latex: $\mat...

8달 전 | 답변 수: 1 | 0

1

답변

질문


Is it possible to solve multiple linear systems of equations in parallel with one matrix operation?
I'm wondering if there's a way to do the following calculations in one go (i.e. without the for loop). V = nan([na nv]); for i...

8달 전 | 답변 수: 0 | 0

0

답변

질문


How to replace elements of a cell array using a containers.Map
I have a cell array of VariableNames that Matlab created when reading a csv file. I want to change them to my own choice of nam...

9달 전 | 답변 수: 2 | 0

2

답변

답변 있음
Solve equation that has a complex subexpression
I just discovered that you can also solve this numerically with vpasolve: syms s omega G(s) assume(omega > 0) G(s) = 10/(s*(1...

11달 전 | 0

질문


How to find the 'troughs' using peak finder in Simulink Scope
I've been using the Peak Finder Measurements tool in the Simulink scope output to find the peak of the system responses. But if...

12달 전 | 답변 수: 1 | 0

1

답변

더로드