Community Profile

# David du Preez

Last seen: oltre un anno fa Attivo dal 2016

All

#### Content Feed

Visto da

Domanda

Interpolated gridded data with limits
I have gridded data which I want to plot on a longitude/latitude map. I have used the following code: pcolor(lon1,S_latitude,su...

circa 2 anni fa | 1 risposta | 0

### 1

risposta

Risolto

Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

circa 2 anni fa

Risolto

Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

circa 2 anni fa

Risolto

Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

circa 2 anni fa

Domanda

Save web map display as image
I have made a web map display in the web browser with the following: webmap('World Street Map') lat = [-26.13390,-26.133429]; ...

circa 3 anni fa | 0 risposte | 0

### 0

risposte

Domanda

Change color outside region of polyshape
I have gridded data between -40°S 0°S to 10°E to 45°E. I have manged to plot this data and add the borders of the countries ove...

circa 3 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Display netcdf data over specific country
I have a netcdf file containg data for a region over southern africa. I only want to plot the data over South Africa and not the...

oltre 3 anni fa | 0 risposte | 1

### 0

risposte

Domanda

I have a monthly time-series of data from 1990-2018 but some months do not have any data and some months have mulitple data poin...

oltre 4 anni fa | 0 risposte | 0

### 0

risposte

Domanda

Use cell array contents to name new cell array
I can import data from an excel file with 58 sheets. Each sheet has a different number of rows. %Gives sheet names and ro...

oltre 4 anni fa | 2 risposte | 0

### 2

risposte

Domanda

Create formatted file using regular expressions
I have an unformatted text file with data for 45 variables. The text file reads in a continuous line and some variables are not ...

oltre 4 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Import csv files with sequential names
I have several csv files with the following names: 19660101.Dobson.Beck.089.SAWS 19660201.Dobson.Beck.089.SAWS 196603...

circa 5 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Plot netcdf variable over south pole
I have a netcdf file. <https://drive.google.com/file/d/0B0wQbicZOF7xa053WUJ5Q19YWEU/view> I want to plot the tco variable of ...

oltre 5 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Plot 3 lines using plotyy
Using plotyy. I want to plot 2 lines on the left y axis and 1 line on the right y axis. I tried something like this but it didn'...

oltre 5 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Double y-axis plot. Change properties of second axis
I am using MATLAB 2011B. I want to limit the second y-axis between 5 and 10 and I want ticks to occur every 2.5 units. [...

oltre 5 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Remove rows by time with datenum
Hi.I have a mx15 matrix. In column 1 are datenum values (datenum(Y,M,D,H,MN,S)). I want to remove rows if the time is earlier th...

oltre 5 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Add 2 trendlines to scatter plot
Hi, I want to make a scatter plot and then add a liner fit line as well as a exponential fit line to the scatter plot and displa...

oltre 5 anni fa | 1 risposta | 0

### 1

risposta

Risposto
Find specific datenum in Matrix
% extract dates dates = datevec(SON_CS2_lowTCO(1:14,1)); % Remove h,m,s dates = dates(:,1:3); dates23 = dates; ...

oltre 5 anni fa | 0

| accettato

Domanda

Find specific datenum in Matrix
Hi. I have a 14x14 (A)matrix.In column 1 are datenum values corresponding to a random hour of a day. I want to use these datenum...

oltre 5 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Select row from matrix based on month with datenum
Hi. I have 2 matrices. A(12x1) contains month averages(Jan-Dec) and B(437x14) which contains daily values for specific days from...

oltre 5 anni fa | 2 risposte | 0

### 2

risposte

Domanda

Delete every n rows if less than x
Hi I have a m x 14 matrix. I want to consider the first 24 rows. If the value in coulmn 5 in row 14 is less than x, then delete...

oltre 5 anni fa | 3 risposte | 0

### 3

risposte

Domanda

Double y-axis plot
Hi I have a 495x4 matrix. In column 1 are datenum values, column 2,3 and 4 contain data. I want to plot the data from all 3 col...

oltre 5 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Compare matrices with datenum
Hi. I have 2 matrices. The first matrix A, (12x1) contains the monthly average values over 10 years. Row 1 is January, row 2 is ...

oltre 5 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Find area under curve of every n rows
Hi. I have a 648 x 14 matrix. I want to calculated the area under the curve of every 24 values created by the values in column 5...

oltre 5 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Find negative in every n rows
I have a 2184 x 14 matrix. In column 1 is the datenum value and in column 14 the values that I want to consider. The other colum...

oltre 5 anni fa | 2 risposte | 0

### 2

risposte

Domanda

Hi. I have 2924 x 2 matrix. In column 1 is the daily datenum value from 2007-2016. These in are not necessarily continues as som...

oltre 5 anni fa | 2 risposte | 0

### 2

risposte

Domanda

Subtract rows in matrix using loop
Hi, I have a 11 x 3541 matrix. For each column I want subtract; row1 from row1 then,row1 from row 2 then, row2 from row 3 and so...

oltre 5 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Change matrix dimensions and keep the order
I have a 1 x 744 matrix that contains hourly data for one month. The 24 columns contain the data for one day the next 24 for the...

oltre 5 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Sort matrix by datenum
I have a 88416 x 13 matrix. Column 1 contains the datenum values. I want to sort the matrix by column 1 keeping the correspondi...

oltre 5 anni fa | 2 risposte | 0

### 2

risposte

Domanda

Extract rows from matrix based on date
I have a 88416 x 11 matrix. Hourly date and time datenum values are in column 1. The hourly date range is from 2006-12-1 to 2016...

oltre 5 anni fa | 2 risposte | 0

### 2

risposte

Domanda

Date/time matrix for every hour.
I want to to create an hourly date/time matrix starting from 2006-12-01 and ending: 2016-12-31. It must start at midnight and en...

oltre 5 anni fa | 3 risposte | 0

risposte