MATLAB: Changing in a table to NA

tableundefined

Hello. I feel this should not be too hard but I still can't seem to figure it out. I have a 2500×14 table, in random spots throughout the table some are '<undefined>', I want to change all of those undefined to 'NA'. I tried working with isundefined but always end up with an error. Thank you in advance for the help!

Best Answer

I suggest trying to use fillmissing.
B = fillmissing(A,'constant','NA');