Is it possible to copy/paste myself data ? clipboard ? Shared Memory ?

4 visualizaciones (últimos 30 días)
xd
xd el 28 de Abr. de 2025
Respondida: Walter Roberson el 29 de Abr. de 2025
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 ?

Respuestas (1)

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

Categorías

Más información sobre Environment and Settings en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by