# Tharindu Weerakoon

Student Professional Interests: Robotics, Algorithms, Dynamic Control

**Statistics**

RANK**35,163**

of 273,368

REPUTATION**1**

CONTRIBUTIONS

**13** Questions

**1** Answer

ANSWER ACCEPTANCE **
30.77%
**

VOTES RECEIVED**1**

RANK

of 18,456

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Question

How to define the variables as 'Global variables' within a Matlab Function block in Stateflow?

I am trying to read some variables calculated in a Matlab Function defined in stateflow without calling them locally by the vari...

6 years ago | 1 answer | 0

### 1

answerQuestion

What is the best way to do some calculation within a state in stateflow?

Dear all, I'm bit confused of selecting a method to do some calculating program in a 'State' of the Stateflow. I do have to cal...

6 years ago | 1 answer | 0

### 1

answerQuestion

How to estimate the accuracy for an estimated tine segment when actual line is known?

Suppose I have a set of XY coordinates (pink dots including noise)which is a measured values of a line segment (Black line). Aft...

7 years ago | 1 answer | 0

### 1

answerQuestion

How to estimate the accuracy for an estimated tine segment when actual line is known?

Suppose I have a set of XY coordinates (pink dots including noise)which is a measured values of a line segment (Black line). Aft...

7 years ago | 0 answers | 0

### 0

answersSolved

Distance walked 1D

Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

7 years ago

Question

How to create a Tangential potential field?

Dear Matlab users, I'm looking for generating a tangential potential field around a given point as shown in the figure. <</m...

8 years ago | 0 answers | 0

### 0

answersQuestion

How to use lsqlin for best line or ploynormial fitting?

I have a set of X and Y data only. X=[-11 -10 -9 -8 -6 -4 -2 0 1 2 ] Y=[ 3 5 1 4 6 10 12 12 12.5 12] ...

8 years ago | 1 answer | 0

### 1

answerQuestion

Least Squares Method for best line fitting

I have a set of X and Y coordinates data taken from Laser scanning X=[x1 x2 x3 x4 .....] Y=[y1 y2 y3 y4 .....] Eleme...

8 years ago | 1 answer | 0

### 1

answerQuestion

Line segment algorithm for LRF data

I want to cluster the LRF scanned data into the clusters by line segmentation method. environment is consisting of walls or flat...

8 years ago | 0 answers | 0

### 0

answersHow to convert 2 byte data to integer?

Hello everyone, Thanks a lot for the help. Finally I could do it. % Two byte array [lower bit , higher bit] x=uint8[178 2...

8 years ago | 0

Question

How to convert 2 byte data to integer?

I have a two byte data (unsigned) as array. e.g. x=[255 67] I read the data from a sensor giving a stream of byte data (u...

8 years ago | 3 answers | 0

### 3

answersQuestion

How to create a Serial port communication mex file in C++ to use in MATLAB?

Dear all, I am looking for using mex file written in VS C++ for serial port communication to make it fast in MATLAB. I wan...

8 years ago | 0 answers | 0

### 0

answersQuestion

How to create a C++ or C# dll file (for serial port communication) to use it in MATLAB (M-file)?

Dear programmers, I want to develop a fast serial port ('COM' port) program to read and write data to COM port. Senor (Hokuyo...

8 years ago | 0 answers | 0

### 0

answersQuestion

How to refresh the data in polar plot

I wanna refresh the data of polar plot with new data set. How can I use *_set_* or _*refreshdata*_ in the program? I know ...

8 years ago | 1 answer | 0

### 1

answerQuestion

variable forced Mass-spring-damper system Matlab script or Simulink model.

I have a mass-spring-damper (MSD) system but the external forced applied to the mass is time varying. The external force is calc...

8 years ago | 0 answers | 1