I have two CSV files that are not equal sizes. for one of the files,I want to obtain all values for when column two is only equal to one. I already did this, the code for this is:
Now that I have all the data associated with column 2 when it equals to 1, I want this file to line up with another file. So where ever the second column is = to 1, i want the second file to only show values that are at the same position.
my code for this is:
Val = find(isnan(P));
P(Val) = [];
M(Val) = [];
So there arent any nan values in the data set but this does what I want it to do. P is the values associated with column 2 when it = to 1 and M is the second file.
2 Comments
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/510370-time-align-two-files#comment_808626
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/510370-time-align-two-files#comment_808626
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/510370-time-align-two-files#comment_808638
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/510370-time-align-two-files#comment_808638
Sign in to comment.