- Convert the text to numeric form, such as by using double(), and pad it out so that it has the same number of columns as the image you are concatenating it on to.
- Put the image and text as different entries in a cell array
how to concatenate image and text in matlab
2 views (last 30 days)
Show older comments
Wubie Engdew on 18 Dec 2019
Answered: Walter Roberson on 18 Dec 2019
Error using cat
Dimensions of arrays being concatenated are not consistent.
Error in file2>embedding_radiobutton_Callback (line 198)
Error in gui_mainfcn (line 95)
Error in file2 (line 17)
Error while evaluating UIControl Callback.
Walter Roberson on 18 Dec 2019
There are two ways you can concatenate image and text in MATLAB:
Based upon your code, though, I think the real answer for you is rather different: You should be converting the text into a series of bits and embedding it into an image using techniques such as LSB embedding.
Find more on Characters and Strings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!