Answered

how to draw lines using given points in a video?

Use insertShape(). Cool project!

how to draw lines using given points in a video?

Use insertShape(). Cool project!

7 months ago | 1

| accepted

Answered

MATLAB codes for HC SR04

The Arduino support package has built in functions for the HC SR04 ultrasonic sensors. You can find the information here: https:...

MATLAB codes for HC SR04

The Arduino support package has built in functions for the HC SR04 ultrasonic sensors. You can find the information here: https:...

7 months ago | 0

Answered

Matlab Adruino Uno project troubleshooting

Read through the Arduino getting started support package for MATLAB. It has all the tools you need: https://www.mathworks.com/he...

Matlab Adruino Uno project troubleshooting

Read through the Arduino getting started support package for MATLAB. It has all the tools you need: https://www.mathworks.com/he...

7 months ago | 0

Answered

How to collect higher number of samples with MATLAB Support Package for Arduino Hardware

This is the most effcient way I have been able to establish a MATLAB / serial communication and it allows you to focus on puttin...

How to collect higher number of samples with MATLAB Support Package for Arduino Hardware

This is the most effcient way I have been able to establish a MATLAB / serial communication and it allows you to focus on puttin...

7 months ago | 0

Answered

How do I plot arduino data with time running in x axis

Use tic and toc to record time. I updated your code below! clc, clear all; A=zeros(1,1000); B=zeros(1,1000); C=zeros(1,1000)...

How do I plot arduino data with time running in x axis

Use tic and toc to record time. I updated your code below! clc, clear all; A=zeros(1,1000); B=zeros(1,1000); C=zeros(1,1000)...

7 months ago | 0

Answered

hey guys can you help me with this.

If you need to run all of that at the same time you need to run miltiple threads. Check out the Parallel computing toolbox for m...

hey guys can you help me with this.

If you need to run all of that at the same time you need to run miltiple threads. Check out the Parallel computing toolbox for m...

7 months ago | 0

| accepted

Answered

How can I view arduino Serial monitor data in matlab, when I have 2 arduinos?

Try creating two serial objects and running something similar to the example below (if you are worried about loosing data you wi...

How can I view arduino Serial monitor data in matlab, when I have 2 arduinos?

Try creating two serial objects and running something similar to the example below (if you are worried about loosing data you wi...

7 months ago | 0

| accepted

Answered

Convert Arduino Code to Matlab

Converting from Arduino (C++) to MATLAB has some challenges as describere here but it can be done. There are some converters onl...

Convert Arduino Code to Matlab

Converting from Arduino (C++) to MATLAB has some challenges as describere here but it can be done. There are some converters onl...

7 months ago | 1

Answered

matlab with raspberry pi 3

Look at the answer provided here. You may need to download some additional packages depending on the approach you take: https:/...

matlab with raspberry pi 3

Look at the answer provided here. You may need to download some additional packages depending on the approach you take: https:/...

8 months ago | 0

Answered

kalman filter object tracking

Conisder using insertObjectAnnotation(I,shape,position,label). There are some examples in the link provided.

kalman filter object tracking

Conisder using insertObjectAnnotation(I,shape,position,label). There are some examples in the link provided.

8 months ago | 0

Answered

Distances between specific points between two points

Use this awesome function from the file exchange: https://www.mathworks.com/matlabcentral/fileexchange/38812-latlon-distance and...

Distances between specific points between two points

Use this awesome function from the file exchange: https://www.mathworks.com/matlabcentral/fileexchange/38812-latlon-distance and...

8 months ago | 0

Answered

boundingBox of a feture in an image

You can use bboxOverlapRatio() to get the ratio and then set a threshold of what is acceptable for plotting or not. A better app...

boundingBox of a feture in an image

You can use bboxOverlapRatio() to get the ratio and then set a threshold of what is acceptable for plotting or not. A better app...

8 months ago | 1

| accepted

Answered

how to compare two graphs having different values on x-axis?

Add a "hold on" statment which basically will make the two plots combined. I have modified your code below: clear all close al...

how to compare two graphs having different values on x-axis?

Add a "hold on" statment which basically will make the two plots combined. I have modified your code below: clear all close al...

8 months ago | 0

Answered

How to sum a series of functions generated from data

The variable Paterson requires intergers as indices not doubles hence the error. Consider changing that last section as follows:...

How to sum a series of functions generated from data

The variable Paterson requires intergers as indices not doubles hence the error. Consider changing that last section as follows:...

8 months ago | 0

| accepted

Answered

How can I import one column of data from a txt file into a variable?

Try without the "." A = importdata('myData.txt'); f = A(:,2) I also included my .txt file in case you have your set up differ...

How can I import one column of data from a txt file into a variable?

Try without the "." A = importdata('myData.txt'); f = A(:,2) I also included my .txt file in case you have your set up differ...

8 months ago | 0

Answered

Importing excel table then graphing it.

Look at the two links below: https://www.mathworks.com/help/matlab/import_export/ways-to-import-spreadsheets.html https://www....

Importing excel table then graphing it.

Look at the two links below: https://www.mathworks.com/help/matlab/import_export/ways-to-import-spreadsheets.html https://www....

8 months ago | 0

Answered

Serial communication with Arduino microphone signal and matlab

Look at my solution for another question here: https://www.mathworks.com/matlabcentral/answers/452211-how-to-make-arduino-receiv...

Serial communication with Arduino microphone signal and matlab

Look at my solution for another question here: https://www.mathworks.com/matlabcentral/answers/452211-how-to-make-arduino-receiv...

8 months ago | 0

Answered

How can I rotate the following 3d body with rotation matrix? What´s wrong if the displayed angle is correct?

I did a similar project in the past. I have attachted my working code below without the Arduino connection so it should run as i...

How can I rotate the following 3d body with rotation matrix? What´s wrong if the displayed angle is correct?

I did a similar project in the past. I have attachted my working code below without the Arduino connection so it should run as i...

8 months ago | 0

Answered

multiply a sawtooth wave form and sin wave together

You just need to define a time array. This should work for you: t = 0:pi/12:2*pi; x = sawtooth(2*pi*50*t); x1 = sin(pi/4*t+pi...

multiply a sawtooth wave form and sin wave together

You just need to define a time array. This should work for you: t = 0:pi/12:2*pi; x = sawtooth(2*pi*50*t); x1 = sin(pi/4*t+pi...

8 months ago | 0

| accepted

Answered

Sine wave signals purification

Try a FFT on your data and use the results to reconstruct a clean signal. Examples are included here: https://www.mathworks.com/...

Sine wave signals purification

Try a FFT on your data and use the results to reconstruct a clean signal. Examples are included here: https://www.mathworks.com/...

8 months ago | 0

Answered

Outrageous values when printing out a function

Try solving using symbolics and then simplify the expression and see if the error repeats. This would also be a good use for MAT...

Outrageous values when printing out a function

Try solving using symbolics and then simplify the expression and see if the error repeats. This would also be a good use for MAT...

8 months ago | 1

Answered

Plot line thickness changes based on value

Here is one way of doing it: %Logical Values x = [1 1 0 0 1 0 1 1 1 0 0 0]; t = 1:length(x); % Create figure and line thic...

Plot line thickness changes based on value

Here is one way of doing it: %Logical Values x = [1 1 0 0 1 0 1 1 1 0 0 0]; t = 1:length(x); % Create figure and line thic...

8 months ago | 0

| accepted

Answered

find first time where data crosses 1

This example should help you with your data set x = -2*pi:pi/12:2*pi; y = 2*sin(x); idx = find(y>1); solution = idx(1) fp...

find first time where data crosses 1

This example should help you with your data set x = -2*pi:pi/12:2*pi; y = 2*sin(x); idx = find(y>1); solution = idx(1) fp...

8 months ago | 0

Answered

Need help transforming data from a table

Give this a try! I am sure there are more effcient ways to achieve your outcome in terms of coding or other alternatives (e.g. a...

Need help transforming data from a table

Give this a try! I am sure there are more effcient ways to achieve your outcome in terms of coding or other alternatives (e.g. a...

8 months ago | 0

Answered

Converting MATLAB code to Arduino code

The easiest way I find is creating a Simulink model and then deploying it on the hardware. These links should get you started: ...

Converting MATLAB code to Arduino code

The easiest way I find is creating a Simulink model and then deploying it on the hardware. These links should get you started: ...

9 months ago | 0

Answered

How to make arduino receive data sent from MATLAB?

I would consider putting your if statments in the void loop and you can simplify your connection and fprintf calls. Have a look ...

How to make arduino receive data sent from MATLAB?

I would consider putting your if statments in the void loop and you can simplify your connection and fprintf calls. Have a look ...

9 months ago | 0

Answered

Deploy Transferlearning network on Raspberry pi3+

Check out the example here: https://www.mathworks.com/matlabcentral/fileexchange/68474-deep-learning-for-defect-detection-on-ras...

Deploy Transferlearning network on Raspberry pi3+

Check out the example here: https://www.mathworks.com/matlabcentral/fileexchange/68474-deep-learning-for-defect-detection-on-ras...

9 months ago | 0

| accepted

Answered

Serial Communication with Arduino

Your code should look something like this. Not the fprintf on the MATLAB side and the if (Serial.avilable() > 0 ) on the Arduino...

Serial Communication with Arduino

Your code should look something like this. Not the fprintf on the MATLAB side and the if (Serial.avilable() > 0 ) on the Arduino...

9 months ago | 0

Answered

Matlab Serial using wrong frequency?

MATLAB is not great for communicating with Ardiuno real time, if I remember 50 Hz is pushing the bounderies. A couple things you...

Matlab Serial using wrong frequency?

MATLAB is not great for communicating with Ardiuno real time, if I remember 50 Hz is pushing the bounderies. A couple things you...

9 months ago | 0

Answered

How to synchronize Arduino Due and Arduino Uno without data acquisition delay in Matlab??

Could you just add your analog sensors to the due or the I2C device to the Uno so that all information is sent as one package? ...

How to synchronize Arduino Due and Arduino Uno without data acquisition delay in Matlab??

Could you just add your analog sensors to the due or the I2C device to the Uno so that all information is sent as one package? ...

9 months ago | 0