photo

Kyle Reagan


Active since 2016

Followers: 0   Following: 0

Statistics

  • First Review
  • Thankful Level 3

View badges

Feeds

View by

Question


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

meer dan 7 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 7 jaar ago | 1 answer | 0

1

answer

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

meer dan 7 jaar ago | 0

| accepted

Question


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

meer dan 7 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 7 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 7 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 7 jaar ago | 0 answers | 0

0

answers

Question


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

meer dan 7 jaar ago | 2 answers | 0

2

answers

Question


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

meer dan 7 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 7 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 7 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 7 jaar ago | 2 answers | 0

2

answers

Question


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

meer dan 7 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 7 jaar ago | 0 answers | 0

0

answers

Question


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

meer dan 7 jaar ago | 2 answers | 0

2

answers

Question


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

meer dan 7 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 7 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 7 jaar ago | 1 answer | 0

1

answer

Question


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

bijna 8 jaar ago | 1 answer | 0

1

answer

Question


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

bijna 8 jaar ago | 1 answer | 0

1

answer

Question


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

ongeveer 8 jaar ago | 1 answer | 0

1

answer

Question


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

ongeveer 8 jaar ago | 0 answers | 0

0

answers

Question


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

ongeveer 8 jaar ago | 1 answer | 0

1

answer

Question


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

ongeveer 8 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 8 jaar ago | 1 answer | 0

1

answer