Hello all, I have a table namely T2,
it has 12 columns. in all of these columns I have some NaN values. I would like to replace NaNs in the 1 to 7 column. the problem is I want to replace these NaNs by non-NaN values in each column (the value in each row is stable).
for example ( for two columns):
NaN NaN NaN
NaN RAD NaN
Behezad RAD MORD
NaN NaN MORD
I want:
Behezad RAD MORD
Behezad RAD MORD
Behezad RAD MORD
Behezad RAD MORD
for each column. it is important that every column has it's own value. I don't want to have any change in column 8 to 12 NaNs
thank you, I wait for your kindly answers.
best regards
7 Comments
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/497480-replace-nan-s-in-a-table-i-need-some-help#comment_779710
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/497480-replace-nan-s-in-a-table-i-need-some-help#comment_779710
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/497480-replace-nan-s-in-a-table-i-need-some-help#comment_779714
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/497480-replace-nan-s-in-a-table-i-need-some-help#comment_779714
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/497480-replace-nan-s-in-a-table-i-need-some-help#comment_779717
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/497480-replace-nan-s-in-a-table-i-need-some-help#comment_779717
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/497480-replace-nan-s-in-a-table-i-need-some-help#comment_779718
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/497480-replace-nan-s-in-a-table-i-need-some-help#comment_779718
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/497480-replace-nan-s-in-a-table-i-need-some-help#comment_779727
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/497480-replace-nan-s-in-a-table-i-need-some-help#comment_779727
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/497480-replace-nan-s-in-a-table-i-need-some-help#comment_779731
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/497480-replace-nan-s-in-a-table-i-need-some-help#comment_779731
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/497480-replace-nan-s-in-a-table-i-need-some-help#comment_779734
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/497480-replace-nan-s-in-a-table-i-need-some-help#comment_779734
Sign in to comment.