John Petersen
Autonomous Solutions, Inc.
Followers: 0 Following: 0
Control systems engineer with PhD in EE at Autonomous Solutions and I love to ski, run and bike trails. Professional Interests: Control systems, Localization/Navigation, Estimation, Electronic Design, Sensor Fusion
Estadística
41 Preguntas
138 Respuestas
0 Problemas
1 Solución
CLASIFICACIÓN
398
of 295.448
REPUTACIÓN
201
CONTRIBUCIONES
41 Preguntas
138 Respuestas
ACEPTACIÓN DE RESPUESTAS
78.05%
VOTOS RECIBIDOS
40
CLASIFICACIÓN
of 20.227
REPUTACIÓN
N/A
EVALUACIÓN MEDIA
0.00
CONTRIBUCIONES
0 Archivos
DESCARGAS
0
ALL TIME DESCARGAS
0
CLASIFICACIÓN
105.069
of 153.872
CONTRIBUCIONES
0 Problemas
1 Solución
PUNTUACIÓN
20
NÚMERO DE INSIGNIAS
1
CONTRIBUCIONES
0 Publicaciones
CONTRIBUCIONES
0 Público Canales
EVALUACIÓN MEDIA
CONTRIBUCIONES
0 Temas destacados
MEDIA DE ME GUSTA
Feeds
Resuelto
Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...
más de 1 año hace
Pregunta
Can I parse a text file with dates and data using readmatrix or readtable?
I have used textscan for most of my parsing, but I want to try using readmatrix or readtable with hopes that it will be simpler....
más de 2 años hace | 2 respuestas | 0
2
respuestasPregunta
How to convert all of a structures fields into strings that represent the complete names.
I have a structure of variable numbers of fields. I want to display them on a GUI so that they can be changed by a user. So I w...
más de 2 años hace | 2 respuestas | 0
2
respuestasPregunta
How can I determine where or if a bus is used in a simulink model?
I have a complex simulink model that has dozens of busses defined. Some busses are identical but with different names. I have f...
más de 3 años hace | 1 respuesta | 0
1
respuestaPregunta
How to convert a layered structure into arrays.
I have a structure like this A.a.b.first, A.a.b.second, A.a.b.third A.c.d.first, A.c.d.second, A.c.d.third A.e.f.first, A.e.f...
más de 3 años hace | 2 respuestas | 0
2
respuestasPregunta
Variable Not fully defined on some execution path error
I have some code that is inside a simulink block that gets an error when it's compiled. It says a variable is not fully defined ...
más de 3 años hace | 1 respuesta | 0
1
respuestaPregunta
How do I plot the progress of fmincon to see the convergence of the approximation?
I want to see the output at each iteration of the optimization. I am solving for MPC and want to plot the entire future solution...
alrededor de 4 años hace | 0 respuestas | 0
0
respuestasDoes a single nodelocked license file support multiple matlab versions
Yes, this is possible. See https://www.mathworks.com/matlabcentral/answers/99348-is-it-possible-to-have-multiple-releases-of-...
alrededor de 4 años hace | 0
Error using cd Cannot CD to 7364 (Name is nonexistent or not a directory).
You are changing directories in the first for loop so that by the time you get in to the second for loop you are not starting in...
alrededor de 4 años hace | 0
How to keep the slider position the same after retrieving its value?
It's not a great idea to be using any globals in here. My guess is that roadA has the value of 5 and that's why slider_input =...
más de 4 años hace | 0
Pregunta
How do I change a configuration parameter for all simulink blocks in my model?
I recently upgraded to 2016b from 2015a and now I'm getting many warnings about units inconsistency. I don't use or care about ...
más de 6 años hace | 0 respuestas | 0
0
respuestasPregunta
Can I index into a timeseries using time?
I have a timeseries and I want to index into the timeseries using time to get the data. Is there an elegant way or do you have t...
más de 7 años hace | 1 respuesta | 0
1
respuestaPregunta
How do I control the size of a checkbox in a programmatic GUI?
I have a programmatic GUI and I'm trying to change the size of my checkboxes, but I can't get it to change. I've tried changing...
más de 7 años hace | 1 respuesta | 0
1
respuestaPregunta
How to index every field of a structure and reassign to a structure with a single element in each field
I have a structure where every field is an array of the same length. I need to pass this structure on but only with a single ele...
más de 7 años hace | 3 respuestas | 1
3
respuestasPregunta
How do I get my text to center vertically in a uicontrol textbox?
I am creating a GUI programmatically and I have a panel that I am displaying text boxes. How do I get my text boxes to display t...
más de 7 años hace | 1 respuesta | 1
1
respuestahow do I print a txt file of integers and floats?
Thank you for your input and suggestions! I have finally come up with this Ad = double(A); % cast the int to a double d...
alrededor de 8 años hace | 0
Pregunta
how do I print a txt file of integers and floats?
I have tried in vain to write a text file of a mix of ints and floats. Suppose I have A = nx1 ints, and B = nx1 floats I want ...
alrededor de 8 años hace | 5 respuestas | 0
5
respuestasPregunta
How do I rename fields of a structure array?
Say I have a structure array such as A = 1x49 struct array with fields: a b c d H...
más de 8 años hace | 8 respuestas | 1
8
respuestasPregunta
How do I assign the same value to every field, including nested fields of a structure?
Say I have a structure which has an unknown number of fields and each field may or may not have subfields. I want to assign a ce...
más de 8 años hace | 1 respuesta | 0
1
respuestaPregunta
How do I run a script from a GUI that will run in the 'base' workspace?
I have a simulink model that uses a lot of variables from the base workspace. Now I am making a GUI that runs the model, but I w...
más de 8 años hace | 2 respuestas | 1
2
respuestasPregunta
Structured Cell array assignment question
If I have something like A(1).a = {c}; A(2).a = {d}; and B(1).a = {e}; B(2).a = {f}; and want to assign ...
casi 9 años hace | 2 respuestas | 0
2
respuestasPregunta
xlsread doesn't recognize file has changed
I have a .xlsx file that I read with xlsread. However, if I change the file and call it with xlsread again, it returns the old v...
casi 9 años hace | 0 respuestas | 0
0
respuestasPregunta
How do I make assignments to my workspace using variable names and values in a spreadsheet?
I have an excel file that has names of structures in the top row, names of fields of those structures in the 2nd row and in the ...
casi 9 años hace | 2 respuestas | 0
2
respuestasSimulink model does not "continue" after a "pause" by using set_param commands.
Your sim stops because of the pause. When you press play, it continues for one cycle and then is told to pause again in your ass...
casi 9 años hace | 0
Pregunta
Fill a listbox with the text of a set of enumerations
I have a listbox in a GUI that I want to populate using enumerations. My class of enumerations might be something like mye...
casi 9 años hace | 1 respuesta | 0
1
respuestaProblem saving cell to txt file
The error is telling you that you can't use cells in your print function. That's because cell arrays can be different lengths, a...
alrededor de 9 años hace | 0
| aceptada
How to use LQR and code generation?
The 'work around' is to write your own Ricatti Eq Solver.
más de 9 años hace | 0
Pregunta
Turn a cellarray into a single array.
I have a cell array, sig, with varying lengths of data in each cell. For example (on a simplified scale) sig = [{1}; {[2 ...
más de 9 años hace | 2 respuestas | 0
2
respuestasHow to convert step varying signal into linear signal(gradual rise and fall)>
One way to do it is to sample the step varying signal at each step and then use the result or you could fit a spline or polynomi...
casi 10 años hace | 0
Function for Script. I need to write a Function that selects the positive and negative numbers from a matrix. How to write this?
a = 0.5 - rand(3,3); %Positive numbers a(a>=0) % negative numbers a(a>0)
casi 10 años hace | 0