Plotting a cellArray Issue
Show older comments
Hello,
I have a cellarray thats for example: cellArray = {1X8}; and each cell is 1X1023. But im having issues plotting this. Ive tried cell2mat. But this just returns a giant char array:
c = '205020502049205020512051205120............'
I tried seperating every 4 chars and plotting but failed. Im trying to read values from a arduino serial port from one of its analog inputs. Ive tried cellfun(@plot,cellArray); and plot(cellArray{1,1}); but get invalid first argument errors.....at a bit of a loss, and I know its a simple solution just stuck.
3 Comments
Rik
on 27 May 2019
Your data seems to be in a char format. Can you provide a small example of your data? You could also attach the entire array in a mat file.
And what exactly is your desired output?
m j
on 27 May 2019
Rik
on 28 May 2019
Why are you using assignin? And how can the while loop exit?
Accepted Answer
More Answers (0)
Categories
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!