Community Profile

# Shayma Al Ali

Last seen: 28 days ago Active since 2019

#### Content Feed

View by

Question

How to flip the top x-axis so it matches the bottom plot?
Hello, I'm trying to plot a power spectra map with two x-axes. The bottom x-axis should be frequency and the top x-axis should ...

1 month ago | 2 answers | 0

### 2

Question

How to rewrite my code so it's faster?
I need to filter out some data from a variable called track1.ph. This variable contains photon height data. Another variable cal...

4 months ago | 0 answers | 0

### 0

Question

Interactive plot - how to open plot by clicking a point in another plot?
I have two variables: Th and SWH which are two 40x1 arrays. In a loop, I use a value from Th to find the peaks in a timeseries i...

6 months ago | 1 answer | 0

### 1

Question

How do I compare two vectors of different length without interpolation?
Hi everyone! I have 3 vectors that consist of photon heights from 3 different beams. Each vector has different lengths. I'm inte...

9 months ago | 1 answer | 0

### 1

Question

Pwelch only returns a single value?
I am trying to use the pwelch method in order to calculate the coherence magnitude squared between two signals with confidence i...

9 months ago | 0 answers | 0

### 0

Question

How do I find if the three arrays of unequal size have the same values?
I have three arrays (ind1, ind2, ind3) that contain indices for three other arrays (ph1,ph2,ph3). ph1 ph2 and ph3 are functions ...

9 months ago | 3 answers | 0

### 3

Question

I keep getting this error when trying to read some variables from a few h5 files. The error I get is: Error using h5readc The ...

1 year ago | 0 answers | 0

### 0

Question

Getting error that output argument is not assigned during function when it is?
I have a function that finds wind speeds between certain lats and lons. This is the first line in my function: function [d,ccm...

1 year ago | 1 answer | 0

### 1

Question

How to get the indices from a matrix and apply it to vectors?
I have a matrix of wind speeds that is 80 x 160. I also have vectors of latitudes (80x1) and longitudes (160x1). I want to be ab...

1 year ago | 1 answer | 0

### 1

Question

Scattered points not plotting on top of pcolorm?
I want to make a plot of wind speeds as a colormap and then plot points on top of the colormap that shows the trajectory of a sa...

1 year ago | 0 answers | 0

### 0

Question

Interpolation is wrong?
Hi everyone! I have a variable, 'wc_average' that I'd like to interpolate so it's the same size as another variable 'dep_cal20...

1 year ago | 2 answers | 0

### 2

Question

I need to download many (like hundreds or thousands) of HDF files from an online database. What functions can I use so I can con...

1 year ago | 1 answer | 0

### 1

Question

Convert from Coordinated UTC to datetime?
I have a list of times formatted in coordinated UTC time. For example, the first data entry point I have is 1.511092230713565e+...

1 year ago | 2 answers | 0

### 2

Question

Inverse of matrix is wrong?
I have a 583x583 matrix called "F". I am trying to use F to get a variable X for an equation FX=B. However, when I solve for X, ...

1 year ago | 1 answer | 0

### 1

Question

How to create a matrix where the value shifts to the write with each row? And how do I create a vector that increases and then decreases?
I need to make a square matrix that is 583x583. With every row, the values shift to the right and the values shift to the right ...

1 year ago | 1 answer | 0

### 1

Question

How to find the common dates between two different variables that are not the same size or format?
I have two different datetime arrays: dt which is (14782x1) and dt2 which is (47370x1). The formats between the two variables ar...

1 year ago | 2 answers | 0

### 2

Question

How to move decimal to the right?
I have a time variable that is supposed to formatted as yymmdd.xxxx where xxxx is the fraction of the day. However, the variable...

1 year ago | 0 answers | 0

### 0

Question

How do I select data based on multiple indexes?
I have a data set called 'total_backscatternight'. I have three flags, 'water_data','Perp_saturationdata','Par_saturationdata', ...

1 year ago | 1 answer | 0

### 1

Question

How do I sort data based on another variable?
One variable, b_dp, is dependent on another variable, b_lat which is the latitude the data b_dp was taken at. I know they are no...

1 year ago | 1 answer | 0

### 1

Question

How to find rows in table based on multiple criteria?
I have a table called shipdatatable that is 625x7. I want to select data in the table based on multiple criteria, specifically t...

1 year ago | 1 answer | 0

### 1

Question

Error with interp1?
I have a variable, u10_B1B3, that is 851x1. I want it to be the same length as another variable, wc_B1B3, which is 7414x1, so I ...

1 year ago | 1 answer | 0

### 1

Question

How to average data within bins when values are not integers?
I'm analyzing whitecaps, named 'wc_average', against wind speed ('new_u10wcav'). I want to bin the windspeeds and average the wh...

1 year ago | 1 answer | 1

### 1

Question

Why am I getting the error that the 'dimensions of arrays concatenated are not consistent'?
I have a list of DOY numbers that also contain the hours and minutes that I want to convert to datetime. The variable is DOYfilt...

2 years ago | 0 answers | 0

### 0

Question

Length of variable is much shorter during a loop?
I have a variable 'DOYfilt' that has a sizw 1408x1 double. It contains datenums so I have a for loop to convert it to datestring...

2 years ago | 1 answer | 0

### 1

Question

How do I convert a date time format that's (dd-MMM-yyyy hh:mm:ss) to (dd-MMM-yyyy hh)?
I'm having trouble converting a datetime column thats in the format (dd-MMM-yyyy hh:mm:ss) to (dd-MMM-yyyy hh), so basically jus...

2 years ago | 1 answer | 0

### 1

Question

Error with matrix multiplication?
I have two matrices I'd like to multiply. Matrix A has dimensions 107x817. Matrix B has dimensions 817x1. My understanding of ma...

2 years ago | 2 answers | 0

### 2

Question

How to select rows in a matrix with a for loop?
I have a 3061x107 matrix. I want to reduce it to a 817x107 matrix. My current code currently saves what I want as a new matrix i...

2 years ago | 1 answer | 0

### 1

Question

Extrapolate values for a variable that is dependent on three other variables?
I have data downloaded for three variables: Temperature (85x1) Salinity (85x1) Pressure (85x1) I use the three variables to ...

2 years ago | 1 answer | 0

### 1

Question

Error message for extrapolation?
I keep getting an error message when using the interp1 function. For some background, I have 107 files that all have the same va...

2 years ago | 1 answer | 0