Community Profile

photo

Leon


Last seen: 1 day ago

NOAA

125 total contributions since 2011

Contact

Leon's Badges

  • First Review
  • Thankful Level 4
  • First Answer

View details...

Contributions in
View by

Question


how to fix this upper directory link?
File_W = fullfile(app.Path, '..', 'MyFolder', [fileName, '_myFormat_.xlsx']); writetable(T1, File_W); The above is my code to ...

1 day ago | 1 answer | 0

1

answer

Question


How to preserve embedded equations and color coding within Excel when using readtable and writetable?
Below is how I normally read info out of an Excel file T = readtable ('example.xlsx','PreserveVariableNames',true); What if I ...

4 days ago | 0 answers | 0

0

answers

Question


Is it possible to set the position of a uialert within app designer?
Below is my code to generate an alert pop up window. message = sprintf('No file is generated.'); uialert(app...

5 days ago | 1 answer | 0

1

answer

Question


How to read Excel files with unknown number of header rows?
Below is my code to read an Excel file using readtable: T1 = readtable ('test.xlsx','PreserveVariableNames',true); Headers = T...

6 days ago | 1 answer | 0

1

answer

Question


How to position two figures on one app-designer gridlayout position?
I need to overlay two figures on one app-designer gridlayout position. The two figures need to be one on top of the other, with ...

7 days ago | 1 answer | 0

1

answer

Question


How to use savefig in app-designer?
Here is how I plot my map in app-designer: load map_use; %M N [m n] = size(M); for i=...

8 days ago | 1 answer | 0

1

answer

Question


How not to delete one element of a figure when using cla?
I have a map with coastlines and sampling stations that are added from other scripts using the command plot. When I move on to t...

8 days ago | 2 answers | 0

2

answers

Answered
How to properly position multiple plots within app-designer
For future reference, I finally got this figured it out. All I need to do is to set the "PlotBoxAspectRatioMode" property to "au...

12 days ago | 0

Question


How to make this simple script faster?
Each of the Sta{i}.test is a one-column data with unknown number of rows. As you know, to keep expanding Variable X is not the m...

14 days ago | 2 answers | 0

2

answers

Question


How to zoom in and out an App-designer app as if they are pictures?
I'm develping a program using app-designer. Right now, I have to rely on things like gridlayout, etc. in order to allow users to...

16 days ago | 0 answers | 0

0

answers

Question


How to write column headers into Excel files?
I'm trying to generate an Excel file with column headers. Below is my code. Why does the generated file do not containt the colu...

20 days ago | 0 answers | 0

0

answers

Question


How to make a marker circle bold?
Below is my command to make a simple plot. How do I make the circle line of the marker bold without making the circle bigger? p...

23 days ago | 1 answer | 0

1

answer

Question


How to convert lon lat data extracted from Mapping Toolbox?
Here is my code trying to extract the longitude and latitude info out of mapping tool box so that I can make my own plots with...

23 days ago | 0 answers | 0

0

answers

Question


How to properly position multiple plots within app-designer
I use gridlayout to hold each of the plots, but they go wild quickly. In the attachment is a picture of what it looks like. Plea...

25 days ago | 2 answers | 0

2

answers

Question


How to make zoom in and zoom out functions of a figure work in this situation?
I have some x and y values that differ a lot in terms of their ranges. For example, the x values could be -0.03 -0.02 0 0.0...

26 days ago | 0 answers | 0

0

answers

Question


How to let a numerical field to be assigned preferrentially by user input?
I'm designing a GUI app using App-Designer, and below is what I want for two numerical fields, i.e., the min depth and max depth...

2 months ago | 1 answer | 0

1

answer

Question


How to check if a table exists?
The table, it exists, will be created by using the command "table". It has columns of both numerican values and strings. How...

2 months ago | 2 answers | 0

2

answers

Question


How to find index of rows without -999
I have a super long matrix like the below: -5, 25, 35 -999, 8, 12 5, 7, 16 8, 9, -999 -999, -999, -999 22, 3, -999 How do...

2 months ago | 1 answer | 0

1

answer

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

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

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

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

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

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

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

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

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

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

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

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

4 months ago | 1 answer | 0

1

answer

Load more