Is it possible to copy/paste myself data ? clipboard ? Shared Memory ?
3 views (last 30 days)
Show older comments
Need some way to transfer data between twosides not directly linked, but matlab seemingly only support text copy/paste through clipboard , and not support Shared Memory, only support disk files.
my god ! Why? It is not diffcult somethings .
And matlab.graphics.primitive.Image and mlreportgen.dom.Image also can not exchange !
for image, must be use Axes or figure save to disk file, and then load disk image file to a new image handle, now can be used as mlreportgen.dom.Image append to report.
Maybe I missed somthing ?
Help ! Who can tell me how to transfer data (any data for example like image, binary memory block)from/to matlab ?
Do I have to write a C language library for sending-receiving and conversion between binary memory block ?
or something like set / get Array from memory ByteStream ?
mlreportgen.dom.Image can be pasted from clipboard ?
0 Comments
Answers (1)
Walter Roberson
on 29 Apr 2025
See https://www.mathworks.com/matlabcentral/answers/534528-how-to-save-serialize-matlab-variables-to-a-byte-string#answer_439768 where @Mohammad Sami says
There is an undocumented function called "getByteStreamFromArray" which converts a matlab object to bytestream.
To convert it back use the opposite function "getArrayFromByteStream".
0 Comments
See Also
Categories
Find more on Environment and Settings 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!