Community Profile

photo

Leon


NOAA

107 total contributions since 2011

Contact

Leon's Badges

  • Thankful Level 4
  • First Answer

View details...

Contributions in
View by

Question


How to write a function for this simple purpose?
I have a variable A. If it is between 5 and 50, B = 10, etc. (like the below). How do I write a function so that B = f(A)? Thank...

17 dagen ago | 3 answers | 0

3

answers

Question


Is this a Matlab bug? The use of Ctrl + A to select all
I use Ctrl + A and then right click "smart indent" a lot. Unfortunately, every time I do that, my cursor is moved to the very ...

20 dagen ago | 1 answer | 0

1

answer

Question


How to detect if a plot has already existed?
What I want to do is to plot my sampling stations on a map. The map is pre-plotted . I want to delete the previous sampling stat...

20 dagen ago | 1 answer | 0

1

answer

Question


How to clear file name and file path information?
Most variables can be cleared by var = []; When I treid to do the same thing for my file name and path like below: app.File....

23 dagen ago | 1 answer | 0

1

answer

Question


How to control the precison of a table that has varying number of columns in writetable?
This is my table: T1 = table(A, EXP, CRU, STA, CAS, NIS, SAM, ... ); If the # of columns is set, I would be able to specify th...

23 dagen ago | 0 answers | 0

0

answers

Question


How to wrap text within buttons of app-designer
Is there a way I can chose to wrap the text in my button to a 2nd row, instead of letting it to overflow outside my button? Tha...

24 dagen ago | 1 answer | 0

1

answer

Question


How to check if an entire column of string variables can potentially be converted to numerical values?
I have a column variable normally look like this: 'ABC1234' 'DEC1236' 'CFG5645' ... Once in a while the column data will b...

26 dagen ago | 2 answers | 0

2

answers

Question


Why is the length of these two variables are different?
I use the same number c to set the length of these two variables A (numerical) and B (string). Why are their lengths are differ...

26 dagen ago | 1 answer | 0

1

answer

Question


Is it possible to use a variable name like this within Matlab?
I have standardized header names with slash like this: OXYGEN_UMOL/KG. How do I escape the '/' so that I can use commands like...

26 dagen ago | 1 answer | 0

1

answer

Question


How to turn NaN values in only numerical columns into -999?
I have some data with both numerical and string columns. See attached for an example (aa.xlsx). It has four columns like thi...

26 dagen ago | 3 answers | 0

3

answers

Question


How to write only non-NaN columns into Excel
Below is my code to write these column data into an Excel spreadsheet using the writetable command: T1 = table(Cruise, EXPOCODE...

27 dagen ago | 1 answer | 0

1

answer

Question


How to create pseudo x-axis (or y-axis) tick labels?
I'm writing a program that requires me to change the x or y values by a factor in order to address a bug within Matlab. For exam...

27 dagen ago | 1 answer | 0

1

answer

Question


How to link an App-Designer push button to a keyboard key?
I create two push buttons for my program, PREVIOUS and NEXT, how do I linke them to the Left and right Arrow key on my keyboard?...

ongeveer 2 maanden ago | 1 answer | 0

1

answer

Question


How to initiate an existing callback from a current callback in Matlab app-designer?
In the below example, what I'm trying to achieve is to call back the 2nd function from the first callback function. How do I do ...

2 maanden ago | 1 answer | 0

1

answer

Question


How to set up writetable so that the generated Excel file follows a certain display format?
Below is my code to write some data into Excel: T1 = table(Cruise, Station_no, Lon, Lat, Year, Month, Day, Time, Pr...

3 maanden ago | 1 answer | 0

1

answer

Question


How to enable a figure so that if I click on a point and it will show the value?
If I have a three column data of x, y, and z, how do I make a plot of x vs y, so that if I click on a point, the value z will sh...

3 maanden ago | 1 answer | 0

1

answer

Question


How to get the value of Radio buttons from App Designer
Here is my radio button: app.ButtonGroup app.A_button app.B_button What I want to do is this: Button A should be the defaul...

5 maanden ago | 1 answer | 0

1

answer

Question


How to make a column plot like this one?
Anyone knows how to make a column plot like the one in the attachment? Many thanks!

5 maanden ago | 1 answer | 0

1

answer

Question


Please help me choose the best hardware for my Matlab processing
I have around 50 million rows of data to process. The number will be increasing into the future. I want to invest around $10K on...

5 maanden ago | 0 answers | 0

0

answers

Question


Why does Matlab require a Parallel computing toolbox in order to use more CPU cores?
Is it true that if I have a multi-core CPU computer and Matlab will only use one of the CPU cores, unless I leverage the paralle...

5 maanden ago | 1 answer | 0

1

answer

Question


How to extract the numerial values out of readtable output?
Good afternoon! My apologies for the many questions related to readtable. Attached is my data file. I use the below command to ...

5 maanden ago | 1 answer | 0

1

answer

Question


Table values that is a scalar string
I use readtable to input an Excel file into Matlab. T1 = readtable('AA.xlsx'); Now I know T1(3,48) = '32WC20110812', but I ...

5 maanden ago | 2 answers | 0

2

answers

Answered
xlsread error: Array indices must be positive integers or logical values.
Thanks all for the replies. I'm using Excel Version 16.25 on MacOS 10.14.5

5 maanden ago | 0

Question


xlsread error: Array indices must be positive integers or logical values.
When I try to use xlsread to read the attached Excel file: [A B C] = xlsread('AA.xlsx'); Why do I keep getting this error? It ...

5 maanden ago | 2 answers | 0

2

answers

Answered
How to determine if a string can be converted to a numerical value?
Old thread, but the function 'isfloat" will do the trick.

5 maanden ago | 0

Question


how to turn off this display in the command window?
I'm using the app-designer of Matlab to create an app. The below display keeps showing up on my command windows, slowing down my...

6 maanden ago | 0 answers | 0

0

answers

Question


How do I specify the cell array to indicate strings in double quotation?
I have an array of strings (pulled from Excel column headers). For example, A{1,1} = 'Station Number' A{1,2} = 'Depth' etc...

7 maanden ago | 1 answer | 0

1

answer

Question


How to get the numbers that do not overlap with another matrix?
Imagine, I have a matrix A = [1, 2, 5, 7, 9]; and B = [1,3,5]; How do I find all numbers in Matraix A that do not already overl...

7 maanden ago | 1 answer | 0

1

answer

Question


How to find the location of the first string matching my searching criteria?
My goal is to find the column number of the variables stored in my Excel file. Below is my code. Now B stores the column headers...

7 maanden ago | 1 answer | 0

1

answer

Question


Setpath error: the path file pathdef.m might be read only
I need some external functions to run my program. They are saved in a different folder. The problem I'm having is that I can not...

7 maanden ago | 1 answer | 0

1

answer

Load more