Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

MATLAB Script for Image Processing and Device Communication, Study Guides, Projects, Research of Network Programming

This matlab script reads images and simulates master-node communication with multiple devices. It utilizes a loop structure to process different numbers of nodes and their corresponding device names and images. The script imports images using the imread function and stores them as structs with the 'simu' field containing the image data and the 'stat' field storing the device communication status.

Typology: Study Guides, Projects, Research

2011/2012

Uploaded on 07/31/2012

dhanush
dhanush 🇮🇳

4

(3)

39 documents

1 / 3

Toggle sidebar

Related documents


Partial preview of the text

Download MATLAB Script for Image Processing and Device Communication and more Study Guides, Projects, Research Network Programming in PDF only on Docsity! function im = queue(num,nodes) if num == 2 status = ['Master is communicating with ' nodes(2).Device_Name]; x = imread('5.JPG'); im(1) = struct('simu', x,'stat',status); end if num == 3 status = ['Master is communicating with ' nodes(2).Device_Name]; x = imread('9.JPG'); im(1) = struct('simu', x, 'stat',status); status = ['Master is communicating with ' nodes(3).Device_Name]; x = imread('8.JPG'); im(2) = struct('simu', x, 'stat',status); end if num == 4 status = ['Master is communicating with ' nodes(2).Device_Name]; x = imread('13.JPG'); im(1) = struct('simu', x, 'stat',status); status = ['Master is communicating with ' nodes(3).Device_Name]; x = imread('14.JPG'); im(2) = struct('simu', x, 'stat',status); status = ['Master is communicating with ' nodes(4).Device_Name]; x = imread('12.JPG'); im(3) = struct('simu', x, 'stat',status); end if num == 5 status = ['Master is communicating with ' nodes(2).Device_Name]; x = imread('18.JPG'); im(1) = struct('simu', x, 'stat',status); status = ['Master is communicating with ' nodes(3).Device_Name]; x = imread('19.JPG'); im(2) = struct('simu', x, 'stat',status); status = ['Master is communicating with ' nodes(4).Device_Name]; x = imread('20.JPG'); im(3) = struct('simu', x, 'stat',status); status = ['Master is communicating with ' nodes(5).Device_Name]; x = imread('17.JPG'); im(4) = struct('simu', x, 'stat',status); end if num == 6 status = ['Master is communicating with ' nodes(2).Device_Name]; docsity.com x = imread('25.JPG'); im(1) = struct('simu', x, 'stat',status); status = ['Master is communicating with ' nodes(3).Device_Name]; x = imread('27.JPG'); im(2) = struct('simu', x, 'stat',status); status = ['Master is communicating with ' nodes(4).Device_Name]; x = imread('26.JPG'); im(3) = struct('simu', x, 'stat',status); status = ['Master is communicating with ' nodes(5).Device_Name]; x = imread('24.JPG'); im(4) = struct('simu', x, 'stat',status); status = ['Master is communicating with ' nodes(6).Device_Name]; x = imread('23.JPG'); im(5) = struct('simu', x, 'stat',status); end if num == 7 status = ['Master is communicating with ' nodes(2).Device_Name]; x = imread('33.JPG'); im(1) = struct('simu', x, 'stat',status); status = ['Master is communicating with ' nodes(3).Device_Name]; x = imread('35.JPG'); im(2) = struct('simu', x, 'stat',status); status = ['Master is communicating with ' nodes(4).Device_Name]; x = imread('34.JPG'); im(3) = struct('simu', x, 'stat',status); status = ['Master is communicating with ' nodes(5).Device_Name]; x = imread('32.JPG'); im(4) = struct('simu', x, 'stat',status); status = ['Master is communicating with ' nodes(6).Device_Name]; x = imread('31.JPG'); im(5) = struct('simu', x, 'stat',status); status = ['Master is communicating with ' nodes(7).Device_Name]; x = imread('30.JPG'); im(6) = struct('simu', x, 'stat',status); end if num == 8 status = ['Master is communicating with ' nodes(2).Device_Name]; x = imread('39.JPG'); im(1) = struct('simu', x, 'stat',status); status = ['Master is communicating with ' nodes(3).Device_Name]; x = imread('42.JPG'); im(2) = struct('simu', x, 'stat',status); docsity.com
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved