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 ?

回答(1 个)

Walter Roberson
Walter Roberson 2025-4-29
There is an undocumented function called "getByteStreamFromArray" which converts a matlab object to bytestream.
To convert it back use the opposite function "getArrayFromByteStream".

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by