problem with importing data from matlab to text file
古いコメントを表示
Hello
I managed to read the pixel data for a bitmap (24 bit) and got the individual RGB values in the form of arrays for every pixel. I am trying to import this data for use in an Arduino sketch. final task is to use these individual arrays of RGB and display the bitmap on a LED matrix. I started with trying make a text file for each of these individual array. The problem is this:
Used all functions - dlmwrite, xlswrite, fprintf - but in all the cases, the text file being created wraps the whole array data resulting in a jumble. The array size is 267X400. On importing, after few columns, the data starts wrapping. I removed the Word wrap from text file, did everything but simply cannot understand why exactly the data is coming jumbled. The whole data is like a big long paragraph. And the only good thing is that on writing it to an excel file, I get it nicely in the specified rows and columns, but when I try saving excel file data to text file, the same problem occurs and I do not know yet whether I can pass this excel data directly to arduino....so thats why trying for a text file.
Can someone please help me with this. I am completely lost. Any assistance would be greatly appreciated.
Thanks!
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Text Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!