Community Profile

photo

Kyle Reagan


Con actividad desde 2016

Followers: 0   Following: 0

Estadísticas

  • First Review
  • Thankful Level 3

Ver insignias

Feeds

Ver por

Pregunta


How to count only increases in data
<</matlabcentral/answers/uploaded_files/84066/Capture.PNG>> I want to sum all the dramatic increases in my set of data, excep...

más de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Using nargin for a menu function
I have a menu function with 4 choices. The first two are buttons to be pressed to enter a start date (choice 1) and an end date...

más de 6 años hace | 1 respuesta | 0

1

respuesta

Respondida
How to sort an array into groups with a minimum of 1 entry per group?
The solution to this is to make two new arrays, n and p that are slightly different from m. Do n = m - 0.01 and p = m + 0.01. ...

casi 7 años hace | 0

| aceptada

Pregunta


I have a matrix with two columns. I want to create a new one that only contains the rows without a 0 in the second column.
I have a matrix, _A_, that looks as follows. My goal is to have a new one, _B_, that is only made of the rows that do NOT have...

casi 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How to overwrite pars of a cell array?
I have a 9x1 cell array composed of strings that looks as follows. k = [full... zero zero zero zero zero ...

casi 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How to sort an array into groups with a minimum of 1 entry per group?
The code shown for the following array sorts it into 3 groups. It doesn't put the first number (7300.0) into a group because it...

casi 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


I want to compare two data sets at slightly offset times.
I have two sets of data, one called "MCA" and one called "Tank". I want to find the datetime where MCA = 10 as long as Tank has...

casi 7 años hace | 0 respuestas | 0

0

respuestas

Pregunta


Putting similar numbers into groups within an array
I have an array of numbers that looks something like follows. I want to group the array into subgroups where the numbers are al...

casi 7 años hace | 2 respuestas | 0

2

respuestas

Pregunta


Sorting the rows of a 2-column matrix based on entries from one column.
I have a matrix with two columns. The first column is numbers and the second is a string of words. I want to sort the entire m...

casi 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How do I do a logic check to see if one or more entries in an array is below a certain value?
I have a 2 column matrix, with the first column being dates and the second column being Fan Speed. I want to have a script sear...

casi 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Execute a for loop over a certain time period.
I use a function called uigetdate to get the date as a number (e.g. 736850). I then want to find the number of elapsed days for...

casi 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Convert vector of datenum values to datetime values
The first column of a 3x2 matrix is datenum values. How do I convert each element to datetime? It looks as follows: b = [7...

casi 7 años hace | 2 respuestas | 0

2

respuestas

Pregunta


I have two columns of excel data which I want to be imported using xlsread based on certain criteria, but I can only get one column to be selected.
I have an excel file with two columns. The first is a numerical date column (e.g. 7.3685e+05) and the next column is text corre...

casi 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Make a legend appear depending on selctions from a uitable
I have a uitable where a figure is displayed and depending on the cells clicked, different plots appear on the figure or get del...

casi 7 años hace | 0 respuestas | 0

0

respuestas

Pregunta


How to carry out a function when a cell is deselected on UItable.
I have a uitable with a cellSelectionCallback that works when the cell is selected (the function plots a graph with multiple dat...

casi 7 años hace | 2 respuestas | 0

2

respuestas

Pregunta


Help creating a GUI for a uitable where the user can select what gets displayed on a graph.
I have a script that displays a table with the option for a user to check up to three boxes. When one of the boxes gets checked...

casi 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Creating a list to select graphs on figure
I want to create a list using uicontrol('Style','listbox') where a figure will pop up and the user can choose which data appears...

casi 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Creat List on a Plot to select multiple data sets
I want to make a graph with up to 10 data sets plotted on it. My idea is to have the figure with a list where the user can sele...

casi 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Clearing workspace variables while in a loop.
I have a while loop that contains a menu and some options for the user to input. One of them is to delete the workspace variabl...

más de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Help with "matrix dimensions must agree".
In my code I have an input that says answer = input('Please type "yes" or no".','s'); if answer == 'yes' blah blah else dis...

más de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


If I use the built in menu function, can I then use "switch" and call the "case" by the order it appears on the menu?
choice = menu('Choose an option!','Set user name', 'Load data file'); switch choice case 1 % Set user na...

más de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Trying to make a recursive tree function that calls on itself using OOP, where the object is a turtle.
I have a separate turtle class created already. Here is my code. function [obj] = tree(obj,n) % Creates tree to the order ...

más de 7 años hace | 0 respuestas | 0

0

respuestas

Pregunta


I need help using recursion in OOP: : A level 1 tree is a line. A level 2 tree is a line and two level 1 trees (it looks like: Y). A level 3 tree is a line and two level 2 trees. A level 4 tree is a line and two level 3 trees.
I have a class set up with functions to drive forward and make turns. I just don't know how to make this work in a loop. The fo...

más de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How do I write a function that finds the max, min, mean, median, mode, std, var, and count of an array? call it "mystat"
function [min,max,mean,median,mode,var,std] = mystat(x) % Enter in an array and mystat will give the min, max, mean, median, mo...

más de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How do I insert the input of a string into an input asking for a number?
My example is naming a planet then asking for the mass of that specific planet in the next line. How do I call the name of the p...

alrededor de 8 años hace | 1 respuesta | 0

1

respuesta