How to access ardunio serial port using mathlab

2 ビュー (過去 30 日間)
Thakshila Dayani
Thakshila Dayani 2022 年 1 月 28 日
How to develop this code to access arduino serial poart and how to read 1, 0 valuea from transmitter. and also how to reading values for receiver code for arduino ?
filename = 'image.jpg';
img = imread(filename);
bitstream = reshape((dec2bin(img(:), 8) - '0').', 1, []);
reconstructed = uint8( reshape(bin2dec(reshape(char(bitstream + '0'), 8, []).'), size(img)) );
imshow(img);
title('original');
imshow(reconstructed);
title('reconstructed');

回答 (0 件)

カテゴリ

Help Center および File ExchangeArduino Hardware についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by