提问


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...

9 years 前 | 1 个回答 | 0

1

个回答

提问


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 ...

9 years 前 | 2 个回答 | 0

2

个回答

提问


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

9 years 前 | 1 个回答 | 0

1

个回答

提问


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...

9 years 前 | 1 个回答 | 0

1

个回答

提问


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...

9 years 前 | 1 个回答 | 0

1

个回答

提问


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...

9 years 前 | 1 个回答 | 0

1

个回答

提问


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 = @...

9 years 前 | 2 个回答 | 0

2

个回答

提问


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...

9 years 前 | 1 个回答 | 0

1

个回答

提问


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...

9 years 前 | 2 个回答 | 0

2

个回答

提问


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)....

9 years 前 | 1 个回答 | 0

1

个回答

提问


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...

9 years 前 | 1 个回答 | 0

1

个回答

提问


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...

9 years 前 | 1 个回答 | 0

1

个回答

提问


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...

9 years 前 | 1 个回答 | 0

1

个回答

提问


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 ...

9 years 前 | 0 个回答 | 0

0

个回答

提问


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...

9 years 前 | 0 个回答 | 0

0

个回答

提问


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...

9 years 前 | 1 个回答 | 0

1

个回答

提问


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 ...

9 years 前 | 1 个回答 | 0

1

个回答

提问


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...

9 years 前 | 1 个回答 | 0

1

个回答

提问


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...

9 years 前 | 1 个回答 | 0

1

个回答

提问


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 ...

9 years 前 | 2 个回答 | 0

2

个回答

提问


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 ...

9 years 前 | 1 个回答 | 0

1

个回答

提问


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...

9 years 前 | 2 个回答 | 0

2

个回答

提问


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...

9 years 前 | 2 个回答 | 0

2

个回答

提问


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...

9 years 前 | 0 个回答 | 0

0

个回答

提问


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...

9 years 前 | 3 个回答 | 1

3

个回答