Domanda

Restrict a column of data by two numerical constraints
I am trying to restrict my data from column 3 in the text file (attached) from numbers 11.78 =< x <= 13.25. For some reason, it...

circa 9 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Multiply certain column in a text file by a constant and have it implemented in text file itself
I need to multiply column 3 of the attached text file by 15 and have it write into the file itself (not just stay as a variable ...

circa 9 anni fa | 2 risposte | 0

### 2

risposte

Domanda

Need to remove '~' in column 5 of text file
content = fileread('mwithin21rm.txt'); linestocopy = regexp(content, '^([^|]*\|){5}~\|.*\$', 'match', 'dotexceptnewline', 'l...

circa 9 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Extract data from a histogram from a certain range on the x-axis
I am trying extract data from a histogram on a certain range on the x-axis without going in individually and counting the 'binne...

circa 9 anni fa | 1 risposta | 0

### 1

risposta

Domanda

URGENT: Need to remove negative values from a text file from a certain column
I need to remove all negative values within column 5, and keep only values between 0 and 7 in column 5 in the text file. I d...

circa 9 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Take percentage of a data set
I need to take 17.65% of a 2016x1 double array (meaning I only want 17.65% of the data in that array). What would the code f...

circa 9 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Convolution of Two Functions
I need to implement a function that is: G(T) = integral(-inf,inf)[Y1(W1)*W1(X1+T)]dt Code drafted so far is: %fun = @...

circa 9 anni fa | 2 risposte | 0

### 2

risposte

Domanda

Stacking two sets of data in a histogram
I need to stack two arrays of equal size, 1x100 double, in a histogram. The problem is that I can individually show two differen...

circa 9 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Applying a fourth variable to a stem3 plot
I am trying to impose a fourth variable on a stem3 plot. I currently have two position variables, and the third variable is a bi...

circa 9 anni fa | 2 risposte | 0

### 2

risposte

Domanda

Trying to remove range of negative numbers from a specific column of multiple rows
I am trying to remove negative numbers < -13.5 from a text file from column 14 of each row (text file attached; within21rm.txt)....

circa 9 anni fa | 1 risposta | 0

### 1

risposta

Domanda

How to plot 2 histograms on the same axis?
I need to plot two histograms using the same axis. Code is below: X1 = GalList.dist; Y1 = GalList.mass; XY = [X1,Y1...

circa 9 anni fa | 1 risposta | 0

### 1

risposta

Domanda

another question has come up about hist3()
OK. So, I have access to the statistics toolbox now. And, I was wondering how I would go about plotting the hist3 function for t...

circa 9 anni fa | 1 risposta | 0

### 1

risposta

Domanda

How to change the scaling back to negative values after applying accumarray function?
I had to impose the accumarray function on two variables, C12 and S12. S12 had negative numbers up to -89 so I had to modify the...

circa 9 anni fa | 1 risposta | 0

### 1

risposta

Domanda

How to create nested loops to create surf function
I am trying to create a scatter plot that plots the right ascension against the declination and puts them into 1 degree bins. I ...

circa 9 anni fa | 0 risposte | 0

### 0

risposte

Domanda

colormap variable as a function of another variable
I need to have a matching vector to define the colours, with one colour for each point, that value going from -6 to +10, but def...

circa 9 anni fa | 0 risposte | 0

### 0

risposte

Domanda

How to create matrices from a meshgrid function
'The scatter3 plot needs vectors, not matrices, but you can do that easily enough by using meshgrid to create the matrices and t...

circa 9 anni fa | 1 risposta | 0

### 1

risposta

Domanda

How to create bins that are then used to create surf function
I am trying to create a scatter plot that plots the right ascension against the declination and puts them into 1 degree bins. I ...

circa 9 anni fa | 1 risposta | 0

### 1

risposta

Domanda

How to break down a text file
I need to break down a text file into its respective columns. It has 6 columns. Would I format the code along the lines of somet...

circa 9 anni fa | 1 risposta | 0

### 1

risposta

Domanda

How to remove certain lines of text in a text file
I am trying to remove certain lines of text present in one text file. All these lines needing to be removed are present in anoth...

circa 9 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Removing certain lines in a text file by setting a restriction
I am trying to remove certain lines of text in a file by setting the restriction that the 15th column of the each line can only ...

circa 9 anni fa | 2 risposte | 0

### 2

risposte

Domanda

Transfer certain rows of a text file into a new text file
I need to transport some lines in my text file, attached as SAMPLEFILE.txt, onto a new text file. The lines I want to transport ...

circa 9 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Removing certain lines of text from an ASCII file loaded into MATLAB
I need to remove galaxies that have the first three letters starting with 'ESO'. There are 5,980 of these lines of code I have t...

circa 9 anni fa | 2 risposte | 0

### 2

risposte

Domanda

Removing certain lines of text from a cell array
I have a 53218x1 cell named N1. It is a cell consisting of the names of galaxies I have taken from a loaded ASCII catalog. I nee...

circa 9 anni fa | 2 risposte | 0

### 2

risposte

Domanda

Histogram Dealing with Two Variables
I am trying to graph a histogram that displays the distribution of L_blue_galaxy/L_blue_MW=10^(-20.8-M)/2.5. So, I need to eva...

circa 9 anni fa | 0 risposte | 0

### 0

risposte

Domanda

How to make one 53228x1 double matrix a function of another 53228x1 double matrix?
I have two matrixes, GalList.mass and GalList.dist, that I need to create a singular function out of. Both have dimensions o...

oltre 9 anni fa | 3 risposte | 1

risposte