Bill Tubbs
Followers: 0 Following: 0
Feeds
已回答
How can i write a .ymal file ??
I find this third-party module by MartinKoch123 works well for reading and writing Yaml files: https://www.mathworks.com/matlab...
How can i write a .ymal file ??
I find this third-party module by MartinKoch123 works well for reading and writing Yaml files: https://www.mathworks.com/matlab...
8 months 前 | 0
已回答
area, stairs
Building on Oleg's answer I wrote a function for doing the same thing with a stacked area plot. However, the data in the x and ...
area, stairs
Building on Oleg's answer I wrote a function for doing the same thing with a stacked area plot. However, the data in the x and ...
8 months 前 | 1
提问
The statement "order of the polynomial B(q) + 1" in the documentation is somewhat ambiguous
The following statement appears in a number of places in the documentation and refers to the nb parameter of discrete linear sys...
1 year 前 | 0 个回答 | 0
0
个回答提问
How to include a disturbance forecast in MPC Simulink block
I'm familiar with how to have a measured disturbance input to an MPC but I also want to include a forecast (i.e. future predicti...
1 year 前 | 0 个回答 | 0
0
个回答已回答
How to set number of measured disturbances to zero in MPC Designer
I figured it out. When you first add an MPC Controller to your simulink model, it has one measured disturbance input by default...
How to set number of measured disturbances to zero in MPC Designer
I figured it out. When you first add an MPC Controller to your simulink model, it has one measured disturbance input by default...
1 year 前 | 0
提问
How to set number of measured disturbances to zero in MPC Designer
I'm using the MPC Designer tool from Simulink for the first time. I have a system with one MV, one CV, and one unmeasured input...
1 year 前 | 1 个回答 | 0
1
个回答提问
Simulate a random walk that starts at a certain time and then stops before the end of the simulation
I want to simulate a white noise that begins at a certain time and then stops at another time before the end of the simulation. ...
1 year 前 | 1 个回答 | 0
1
个回答已回答
Compute standard deviations of predictions of linear and polynomial regression models
Looking at the linear regression example, the mean predictions are in fact exactly half-way between the confidence intervals, a...
Compute standard deviations of predictions of linear and polynomial regression models
Looking at the linear regression example, the mean predictions are in fact exactly half-way between the confidence intervals, a...
1 year 前 | 0
提问
Compute standard deviations of predictions of linear and polynomial regression models
I'm using the fit and fitlm functions to fit various linear and polynomial regression models, and then using predict and predint...
1 year 前 | 2 个回答 | 0
2
个回答已回答
How can I use a variable number of structure fields as function arguments?
I recently discovered the function namedargs2cell (since r2019b) and use it for this purpose: >> MyParams = struct('a',1,'b',2,...
How can I use a variable number of structure fields as function arguments?
I recently discovered the function namedargs2cell (since r2019b) and use it for this purpose: >> MyParams = struct('a',1,'b',2,...
1 year 前 | 1
已回答
Using regressionLearner app—how to add models
I eventually figured out a workaround. It's not very intuitive. First you have to fit one of your models. Then select this mo...
Using regressionLearner app—how to add models
I eventually figured out a workaround. It's not very intuitive. First you have to fit one of your models. Then select this mo...
1 year 前 | 0
| 已接受
提问
Using regressionLearner app—how to add models
I'm following this tutorial on how to use the regressionLearner app. At one point it says "Add medium and coarse tree models to...
1 year 前 | 1 个回答 | 0
1
个回答已回答
Multiple dispatch problem when trying to call the feval function with a LinearModel as an argument.
There are some good suggested solutions to this from Cris Luengo on this parallel stackoverflow post: MATLAB "Too many output a...
Multiple dispatch problem when trying to call the feval function with a LinearModel as an argument.
There are some good suggested solutions to this from Cris Luengo on this parallel stackoverflow post: MATLAB "Too many output a...
1 year 前 | 1
| 已接受
提问
Multiple dispatch problem when trying to call the feval function with a LinearModel as an argument.
I set up a workflow where I am using feval to call functions programmatically and ran into a major stumbling block with one part...
1 year 前 | 1 个回答 | 0
1
个回答提问
Gaussian process regression - how to fit a basis function but not other parameters
I'm doing Gaussian process regression with the fitrgp function and want to manually control some parameters such as the kernel p...
1 year 前 | 2 个回答 | 0
2
个回答已回答
Loop over fieldnames in a matlab structure
There is another way to loop over the fieldnames: for field = fieldnames(mystruct)' if isstruct(mystruct.(field{:})) ...
Loop over fieldnames in a matlab structure
There is another way to loop over the fieldnames: for field = fieldnames(mystruct)' if isstruct(mystruct.(field{:})) ...
1 year 前 | 0
已回答
Rearrange Variables in an equation
As explained here by Paul, you can use the isolate function for this: >> syms a b >> eqn1 = b == (1 - a) / 2; >> isolate(eqn1...
Rearrange Variables in an equation
As explained here by Paul, you can use the isolate function for this: >> syms a b >> eqn1 = b == (1 - a) / 2; >> isolate(eqn1...
2 years 前 | 0
提问
How to simply rearrange a symbolic equation to get an expression for one variable in terms of others
I'm building differential equations symbolically and ran into an error when doing a simple re-arranging of an equation. For exa...
2 years 前 | 1 个回答 | 0
1
个回答已回答
Specifying bounds in process model estimation
Not necessarily. You only need bounds if you think your model is overfitting the data (e.g. due to not enough data points and/o...
Specifying bounds in process model estimation
Not necessarily. You only need bounds if you think your model is overfitting the data (e.g. due to not enough data points and/o...
2 years 前 | 0
提问
Test of whether matrix is Symmetric Positive Definite is giving wrong result when matrix is not symmetric
I'm computing a multivariate normal probability density with an estimated covariance matrix as follows: % Update the conditiona...
2 years 前 | 2 个回答 | 0
2
个回答已回答
How to make an array of alternating 1 and -1?
Even easier: out = cumprod(-ones(1, 12)) out = -1 1 -1 1 -1 1 -1 1 -1 1 -1 1
How to make an array of alternating 1 and -1?
Even easier: out = cumprod(-ones(1, 12)) out = -1 1 -1 1 -1 1 -1 1 -1 1 -1 1
2 years 前 | 1
已回答
How to make an array of alternating 1 and -1?
Here's another way. A geometric series: out = (-1).^(0:11) out = 1 -1 1 -1 1 -1 1 -1 1 ...
How to make an array of alternating 1 and -1?
Here's another way. A geometric series: out = (-1).^(0:11) out = 1 -1 1 -1 1 -1 1 -1 1 ...
2 years 前 | 0
提问
Confusing description of built-in estimator noise model on MPC documentation page
I'm confused by the following text which appears on the documentation page: 'Implement Custom State Estimator Equivalent to Buil...
2 years 前 | 0 个回答 | 0
0
个回答提问
How to assign values to MV Targets of MPC object from cell array
I'm having a tough time trying to assign 3 values to the parameters of an mpc object. Here is my MPC object with it's current v...
2 years 前 | 1 个回答 | 0
1
个回答已回答
Advice on adding a manipulatable variable target to MPC
As usual, I figured it out a few minutes after posting this question! It actually says this in the documentation page I linked ...
Advice on adding a manipulatable variable target to MPC
As usual, I figured it out a few minutes after posting this question! It actually says this in the documentation page I linked ...
2 years 前 | 0
| 已接受
提问
Advice on adding a manipulatable variable target to MPC
I've designed an MPC in MATLAB using the mpc function and successfully simulated it in Simulink using the MPC block in closed lo...
2 years 前 | 1 个回答 | 0
1
个回答已回答
Trying to understand dimensions of state estimates output of MPC block in Simulink
I figured out that you can use the following to get all the parameters of the Kalman Filter including the augmented model used b...
Trying to understand dimensions of state estimates output of MPC block in Simulink
I figured out that you can use the following to get all the parameters of the Kalman Filter including the augmented model used b...
2 years 前 | 0
| 已接受
提问
Trying to understand dimensions of state estimates output of MPC block in Simulink
I'm running an MPC in Simulink that was defined in a matlab script using the MPC Controller block and I want to inspect the stat...
2 years 前 | 1 个回答 | 0
1
个回答已回答
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...
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...
2 years 前 | 0
已回答
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...
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...
2 years 前 | 0