Community Profile

# jgillis16

Active since 2015

#### Content Feed

View by

Question

linear interpolation using 2 arrays
I have two separate arrays containing two variables, t & T. I need to interpolate for a new set of T values using the relationsh...

5 years ago | 0 answers | 0

### 0

Question

Function that requires 2 variables
I have two variables, t and h, that are composed of 30831 individual elements (so there is a t1,t2,t3...;h1,h2,h3...) and I need...

6 years ago | 2 answers | 0

### 2

Question

Text file for loop help
I have a text file (attached), which has 4 columns. I wanted to create separate text files out of this one text file based on th...

6 years ago | 1 answer | 0

### 1

Question

Plotting 3D plot with 3 variables
I have three variables (let's call them x, y, and z), and x and y represent coordinates while z is a value that correlates to th...

7 years ago | 1 answer | 0

### 1

Question

binning the x-axis of a plot
I need to create bins for the x-axis of my plot. The axis goes from 0 to 20, and I need to make bins corresponding to every .10 ...

7 years ago | 1 answer | 0

### 1

Question

Removing double values from matrices
I have two matrices, X and Y, which are essentially a set of coordinates. The problem is that some values in matrix Y have more ...

7 years ago | 1 answer | 0

### 1

Question

Pulling two sets of numbers in two separate doubles into a new double
I have one 2x43 double called FaXY3. It contains two doubles, titles FaY3 and FaX2. FaY3 and FaX2 together create a set of coord...

7 years ago | 1 answer | 0

### 1

Question

Random number selector from double
I have drafted the following code: num_to_fetch = round(66 / 100 * length(FaY3)); your_subset = FaY3(randperm(le...

7 years ago | 1 answer | 0

### 1

Question

How to merge multiple matrices
I need to combine multiple matrices (doubles) (all the same length with padding of 0) into one matrix without losing their 'posi...

7 years ago | 1 answer | 0

### 1

Question

Need to combine doubles with different sizes
I need to combine a set of doubles into one double matrix. My problem is that they are all different sizes. How would I go about...

7 years ago | 1 answer | 0

### 1

Question

Binary data in Logical associated with coordinates
I need to export only the 1's in a logical array into a text file. But, I need to export the coordinates associated with the 1's...

7 years ago | 1 answer | 0

### 1

Question

Binary data in Logical Array into a text file
Would it be possible to export binary data in a logical array into a text file?

7 years ago | 2 answers | 0

### 2

Question

Converting pixel coordinates back into x,y values
I have pixel coordinates of an image and would like to convert these coordinates back into the original (x,y) coordinates and pu...

7 years ago | 1 answer | 0

### 1

Question

Exporting imshow data into a text file
I used imshow on an image to set up a threshold where the pixels fell below a certain number of counts. And, to see if a new poi...

7 years ago | 1 answer | 0

### 1

Question

Extracting information from a plot
I have a map of objects on a basic plot. there are areas on the plot that don’t have many objects at all. I want to identify and...

7 years ago | 2 answers | 0

### 2

Question

Exporting Lines from One Text File to Another
I have the following code written to copy certain lines from one text file: contents = fileread('observedsn.txt'); [star...

7 years ago | 1 answer | 0

### 1

Question

Character Restrictions in a Text File
I am trying to restrict the 25th column of this text file by exporting entire line either of the following characters, "Ib, Ib/c...

7 years ago | 1 answer | 0

### 1

Question

Creating Bins in a Histogram
I have a data set with the first column being the years and the second column being the distances. I need to create a histogram ...

7 years ago | 2 answers | 0

### 2

Question

Line of Best Fit through Scattered Data
I need to find the line of best fit through my scatterplot. I have attached my text file, and my code is the following. cle...

7 years ago | 3 answers | 0

### 3

Question

Using interp1 on a function that is not monotonic increasing
I need to use the interp1 function on my two data sets, labeled x and y. I wrote the following code: yDesired = interp...

7 years ago | 2 answers | 0

### 2

Question

Plotting Poissonian Error Bars
I am inputting poissonian error bars on a plot I drafted. The only problem is that there are numerous points on the graph, there...

7 years ago | 1 answer | 0

### 1

Question

Interpolation on a Convoluted Function
I have the following function: G(tau) = integral(-inf, inf) h_x(t)*h_+(t+tau)dt where tau = T, h_x = Y1, h_+ = W1, and t =...

7 years ago | 0 answers | 0

### 0

Question

Export matched lines from two text files
I need to identify the same lines between the two text files, mwithrm21.txt and virgomrmdist.txt, based on column 7 of each file...

7 years ago | 3 answers | 0

### 3

Question

Removing duplicate lines from a text file
I have a text file (attached) that has duplicate lines in it. How would I remove those lines?

7 years ago | 1 answer | 0

### 1

Question

Exporting matched lines from a text file
I am trying to export the lines in a text file that contain '~' in column 8 to another text file. I have written the code below:...

7 years ago | 1 answer | 0

### 1

Question

Restricting a set of data by a spherical radius
I need to restrict column 3 of the attached text file by a spherical radius with a central number of 12.51 that has a radius tha...

7 years ago | 1 answer | 0

### 1

Question

Character restriction in text file
I am trying to restrict a text file by only keeping lines that contain 'M' in the first column. I wrote the code below, excep...

7 years ago | 2 answers | 0

### 2

Question

Removing unwanted lines from text file
I am trying to remove all the NaN from column 7 of the attached text file and move them into a new text file. I have written...

7 years ago | 1 answer | 0

### 1

Question

Transfer lines in a text file to a new text file
I need to transfer lines between two text files into a new text file. The text file in which I need to match lines is called m21...

7 years ago | 1 answer | 0