Question: We make a temperature sensor using mbed and matlab applications and we make a device but our matlab code makes a warning about the data

We make a temperature sensor using mbed and matlab applications and wemake a device but our matlab code makes a warning about thedata and it says vectors must be the same lenght as youWe make a temperature sensor using mbed and matlab applications and we make a device but our matlab code makes a warning about the data and it says vectors must be the same lenght as you can see.What is the mistake in matlab code urgent answer please

\begin{tabular}{r|l} 1 & Close all \\ 2 & clearvars \\ 3 & clc \\ 4 & SIZE=200; \\ 5 & fs=1000; \\ 6 & try \\ 7 \\ 8 & mc=serialport( ' COM4' , 115200);\%COMA GRE YAZILICAK (COM, 115200) \\ 9 & write(mc, 's', 'uint8'); \\ 10 & data=read(mc, SIZE, "single"); \\ t=0:1/fs:2; \\ 11 & plot(t, data) \\ 12 & xlabel(Time(s)) \\ 13 & ylabel('Amplitude') \\ 14 & xlim([0,2]) \\ 15 & ylim([0,1,2]) \\ 16 & title('Sampled Signal') \\ 17 & grid \\ 18 & catch ME \\ 19 & disp(ME.message); \\ 20 & end \end{tabular} Command Window Warning: The specified amount of data was not returned within the Timeout period for 'read'. Vectors must be the same length

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!