I am new to Matlab. Looking for something simple.

This is my data

14:27:45.535 -> Color Temp: 9888 K - Lux: 9155 - R: 23431 G: 20757 B: 21860 C: 47209

14:27:46.258 -> Color Temp: 9813 K - Lux: 9317 - R: 23760 G: 21059 B: 22144 C: 47781

14:27:46.979 -> Color Temp: 9111 K - Lux: 10240 - R: 25986 G: 22832 B: 23719 C: 50101

14:27:47.668 -> Color Temp: 7065 K - Lux: 6485 - R: 18168 G: 14743 B: 14873 C: 26192

14:27:48.394 -> Color Temp: 6879 K - Lux: 6104 - R: 17014 G: 13777 B: 13823 C: 24495

14:27:49.084 -> Color Temp: 6760 K - Lux: 8271 - R: 22906 G: 18545 B: 18530 C: 33597

14:27:49.813 -> Color Temp: 7217 K - Lux: 8778 - R: 24217 G: 19835 B: 20038 C: 37326

14:27:50.500 -> Color Temp: 7352 K - Lux: 9219 - R: 25368 G: 20858 B: 21131 C: 39681

14:27:51.223 -> Color Temp: 7360 K - Lux: 9070 - R: 24427 G: 20262 B: 20467 C: 38348

I want to parse R,G,B,C into a 4dimensional matrix.

Please help, the online examples are too hard for a novice like me.

## 12 Comments

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/497882-parsing-text-files-for-beginners#comment_780726

⋮## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/497882-parsing-text-files-for-beginners#comment_780726

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/497882-parsing-text-files-for-beginners#comment_782365

⋮## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/497882-parsing-text-files-for-beginners#comment_782365

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/497882-parsing-text-files-for-beginners#comment_782374

⋮## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/497882-parsing-text-files-for-beginners#comment_782374

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/497882-parsing-text-files-for-beginners#comment_786081

⋮## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/497882-parsing-text-files-for-beginners#comment_786081

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/497882-parsing-text-files-for-beginners#comment_786106

⋮## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/497882-parsing-text-files-for-beginners#comment_786106

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/497882-parsing-text-files-for-beginners#comment_786225

⋮## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/497882-parsing-text-files-for-beginners#comment_786225

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/497882-parsing-text-files-for-beginners#comment_786305

⋮## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/497882-parsing-text-files-for-beginners#comment_786305

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/497882-parsing-text-files-for-beginners#comment_786470

⋮## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/497882-parsing-text-files-for-beginners#comment_786470

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/497882-parsing-text-files-for-beginners#comment_786483

⋮## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/497882-parsing-text-files-for-beginners#comment_786483

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/497882-parsing-text-files-for-beginners#comment_786539

⋮## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/497882-parsing-text-files-for-beginners#comment_786539

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/497882-parsing-text-files-for-beginners#comment_786781

⋮## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/497882-parsing-text-files-for-beginners#comment_786781

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/497882-parsing-text-files-for-beginners#comment_786822

⋮## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/497882-parsing-text-files-for-beginners#comment_786822

Sign in to comment.