Is it possible to copy/paste myself data ? clipboard ? Shared Memory ?
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Walter Roberson
2025-4-29
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!