How to export RGB matrix values to a text file?

2 views (last 30 days)
Vikram
Vikram on 25 Oct 2014
Commented: Vikram on 26 Oct 2014
Hi, I created 3 arrays (RGB) from a bitmap image. I want to export those arrays in a text file using export(DS,'file',filename,'Delimiter',delim). I am not sure how to use this function because the arrays created don't have a name that I can type as DS. My MATLAB knowledge is 2/10. I only know basics so please elaborate.

Answers (1)

Jan
Jan on 26 Oct 2014
Simply insert the name of your arrays instead of "DS".
  1 Comment
Vikram
Vikram on 26 Oct 2014
I get that, but I cannot find the name of array. I just added an image and got 3 arrays for R,G and B without any name. They are just titled as val(:,:,1), val(:,:,2) and val(:,:,3).

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!