So if F{n} equals [4,8] and W{m} equals [5,8] you want to remove the 8 in W{m}, is the correct? The final result would be W{m}=[5]. (That's what a complete example would look like).
You might try ismember() with the rows option. Or try a loop comparing W with each row of F with isequal(). Please attach the actual F and W in a .mat file with the paper clip icon.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
4 Comments
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/496744-how-can-i-delete-cell-from-cell-array#comment_778145
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/496744-how-can-i-delete-cell-from-cell-array#comment_778145
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/496744-how-can-i-delete-cell-from-cell-array#comment_778149
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/496744-how-can-i-delete-cell-from-cell-array#comment_778149
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/496744-how-can-i-delete-cell-from-cell-array#comment_778153
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/496744-how-can-i-delete-cell-from-cell-array#comment_778153
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/496744-how-can-i-delete-cell-from-cell-array#comment_778185
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/496744-how-can-i-delete-cell-from-cell-array#comment_778185
Sign in to comment.