Frage


How to blank a grid value with a boundary file?
I have a grid like the below: [X, Y] = ndgrid([-180:0.25:179.75],[-90:0.25:89.75]); Z = griddata(...); %on the same grid as X ...

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to find the nearby sampling stations
I have millions of samping sations, my goal is to find the nearby stations with a certain distance threshold. What is the best w...

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to convert arc length to km?
My goal is to find a good function to calculate the distance for two points for millions of data points. I found the fucntion ll...

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to create a callback for radio buttons
I have a group of radio buttons with 3 choices (app.mode1, app.mode2, and app.mode3) in app-designer. When a user clicks one of ...

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to change the button names depending on different situations?
I'm referring to buttons within app-designer. For example, I would want the button to be called "load" in one situation, and "p...

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
Matlab textArea automatic new line issue
It turns out that the issue are the square brackets. Once I replace them with strcat, everything works perfectly now. Before: ...

etwa 3 Jahre vor | 1

| akzeptiert

Frage


Limits of app-designer spinner input field
I have an app-designer spinner input field called app.A. I can set its limits by below: app.A.Limits = [1, max(cruiseList)]; H...

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to find the index of a column data whose values are equal to another column data?
For example: A = [31; 2; 57; 36; 87; 36]; B = [2; 36]; My goal is to find the inex of all the column A that are equal to any ...

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Matlab textArea automatic new line issue
I'm trying to generate a list of items. For each research cruise, its Year, Month, Day, Longitude, Latitude, etc. should all be ...

etwa 3 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How to establish the handle value of a personalized plot function?
I need to develop a program that will: (a) plot one set of data into a figure at a time, (b) when the next set of data is plot...

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to write this line of code to create a Matlab table?
I have unknown number of column variables in cell array: Var{1} = [ 1; 2; 3; 4; 7]; Var{2} = [33; 10; 46; 7; 2]; ... If I kn...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Anyone has issues with the Mathworks Community forum system?
I mean the system I'm using to ask this question. A lot of the time it would freeze for no reason and become uneditable. I wou...

mehr als 3 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Is it possible to have a column data with some numerical values and some strings?
I have some really large data with millions of rows. I would have a column with 95% of them being numerical and 5% being strings...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to read out the strings from this Excel file?
Attached is the Excel file. Here is the code I use to read values out of the Excel file: T1 = readtable ('test.xlsx'); Unfo...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to first form a variable and then assign values to it?
My variable can be anything like the below: if case1 Var = Temperature elseif case2 Var = Pressure elseif case3 V...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to position radio buttons into grid layouts in App Designer?
Is it possible to position each of the radio buttons in a radio button group into a grid layout? Many thanks.

mehr als 3 Jahre vor | 1 Antwort | 4

1

Antwort

Frage


How to form a structure array variable?
I have a structure array like the below Test{1}.a = [1; 2; 3]; Test{1}.b = [7; 3; 22]; Test{1}.c = [4; 9; 22]; ... If I hav...

mehr als 3 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Is there such a table units identification approach?
Imagine I have a table T1. We know its units will be Units = T1.Properties.VariableUnits; Similarly, its header will be Heade...

mehr als 3 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How to replace -999 values with NaN in a Matlab table?
I have a Matlab table T1, with columns like the below: T1.year T1.month T1.day T1.var1 T1.var2 ... Some of its columns a...

mehr als 3 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How to bold a phrase in a textbox?
Below is my code. How do I bold the phrase "Flag: "? C = [C, newline, ['Flag: ', num2str(B(i)) ] ]; app.text1.Value = C;...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to check if a column data is equal to any of a group of values?
I have a column data A like the below: A = [1; 3; 2; 7; 11; 6]; B can be a group of numbers with unknow counts. For example B ...

mehr als 3 Jahre vor | 4 Antworten | 0

4

Antworten

Frage


string join does not work for char arrays?
I have a column list of numbers like the below M = [2; 3; 5; 7; 16]; What I want is to create a string array like this "2, 3,...

mehr als 3 Jahre vor | 4 Antworten | 0

4

Antworten

Frage


How to find unique group of numbers?
I have a cell array like the below, storing some groups of numbers: C{1} = [1; 3; 4]; C{2} = [3; 9; 135; 278]; C{3} = [6; 89;...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to write special characters into an Excel cell?
I'm trying to write the units of my table into the 2nd row of my Excel file. Below is the code: writecell(T.Properties.Variable...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Adding a unit row to a table
Below is how I normall create my table in Excel: TT = table(Year, Month, Day, Longitude, Latitude, Oxygen, Chlorophyll_A); wri...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to preserve subscript or superscript formatting in a text string?
I'm reading out some text strings (units) from some Excel files: filename = 'AAA.xlsx'; opt = detectImportOptions(filename); ...

fast 4 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


How to read units on a 2nd row out of an Excel file?
Attached is an example Excel file. I'm using this command to read the info out of the file: T1 = readtable('test.xlsx', 'Pres...

fast 4 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How to force y-axis values not to use scientific notation in axes?
My y-axis ranges from 0.001 to 0.003, it always shows up as 1-3 x 10^-3. How do I force it show up as 0.001 to 0.003?

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to subset a table and pass the variable names?
I'm trying to subset a large table to only get the rows that I'm interested in. Below is my code: My table is named T % uniq...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to find the unique elements in multiple strings?
I have strings like the below. It can be 1 or can be more than 20. Here is an example with just 2 strings> A = "CTDTMP, CTDSA...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Mehr laden