So,
I've got two matrices
a = [A;B;C;D;E;F]; %% The entire list of variables
b = [B;D;F, 5;13;6]; %% A set of data with missing variables and amounts of occurances in second coulmn
How can i get something that gives me something like this...
c = [A;B;C;D;E;F, 0;5;0;16;0;6]
7 Comments
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/623458-comparing-matrices-and-filling-in-the-gaps#comment_1080483
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/623458-comparing-matrices-and-filling-in-the-gaps#comment_1080483
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/623458-comparing-matrices-and-filling-in-the-gaps#comment_1080653
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/623458-comparing-matrices-and-filling-in-the-gaps#comment_1080653
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/623458-comparing-matrices-and-filling-in-the-gaps#comment_1080668
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/623458-comparing-matrices-and-filling-in-the-gaps#comment_1080668
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/623458-comparing-matrices-and-filling-in-the-gaps#comment_1080688
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/623458-comparing-matrices-and-filling-in-the-gaps#comment_1080688
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/623458-comparing-matrices-and-filling-in-the-gaps#comment_1080778
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/623458-comparing-matrices-and-filling-in-the-gaps#comment_1080778
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/623458-comparing-matrices-and-filling-in-the-gaps#comment_1080863
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/623458-comparing-matrices-and-filling-in-the-gaps#comment_1080863
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/623458-comparing-matrices-and-filling-in-the-gaps#comment_1081008
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/623458-comparing-matrices-and-filling-in-the-gaps#comment_1081008
Sign in to comment.