MATLAB: Ascii II file gives error number of columns on line2 must be same as previous line
5g machine learning
While running the code my program gives error ,which shows
Number of columns on line 2 of ASCII file DLCB_code_output/DL_Result1 must be the same as previous lines. but when i open in notepad it gives mat 5.0 file .
Best Answer
You are attempting to load a file that does not have an extension. In such a case, matlab guesses that the file is an ascii file.
You need to add the -mat option to the load() call.
Your code works correctly (with a different image) when I run it.
Note that thesuperpixels function was introduced inR2016a. If you have an earlier version of MATLAB and the Image Processing Toolbox, you will not be able to use it.
Best Answer