# Hassan Mehmood Khan

I am a passionate teacher and trainer in the field of Mechatronics. Same time i am doing my Masters in Singal & Systems. I have intermediate skills for PLC,PIC and Arduino programming with Systems Design.

**Statistics**

RANK**1,513**

of 281,632

REPUTATION**37**

CONTRIBUTIONS

**3** Questions

**7** Answers

ANSWER ACCEPTANCE **
0.0%
**

VOTES RECEIVED**17**

RANK**16,478** of 19,055

REPUTATION**3**

AVERAGE RATING**0.00**

CONTRIBUTIONS**1** File

DOWNLOADS **1**

ALL TIME DOWNLOADS**39**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Question

Matlab 2019b don't recognise "Data Acquisition Commands"

I have been trying to connect NI USB 6009 to Matlab 2019b Session base commands are recognised I want to send Digital OUT sig...

3 years ago | 1 answer | 1

### 1

answerSolved

Select every other element of a vector

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

3 years ago

Solved

Area of an Isoceles Triangle

An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<http://upload...

5 years ago

Solved

Area of an equilateral triangle

Calculate the area of an equilateral triangle of side x. <<http://upload.wikimedia.org/wikipedia/commons/e/e0/Equilateral-tr...

5 years ago

Solved

Side of an equilateral triangle

If an equilateral triangle has area A, then what is the length of each of its sides, x? <<http://upload.wikimedia.org/wikipe...

5 years ago

Solved

Length of a short side

Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

5 years ago

Solved

Side of a rhombus

If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<http://upload.wikimedia.org/wikipe...

5 years ago

Solved

Is this triangle right-angled?

Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

5 years ago

Solved

Dimensions of a rectangle

The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...

5 years ago

Solved

Is this triangle right-angled?

Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

5 years ago

Solved

Length of the hypotenuse

Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

5 years ago

Solved

Sum all integers from 1 to 2^n

Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

5 years ago

Why is the figure not displaying anything ?

<</matlabcentral/answers/uploaded_files/106192/Screenshot_6.png>>

5 years ago | 0

Why is the figure not displaying anything ?

# Need to remove unit8 from the newImg(i,j) . # It is not defined earlier in the programme. # The figure in last command , nee...

5 years ago | 0

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

5 years ago

How to display a grid in Simulink 2017a

Simulink.sdi.setSubPlotLayout(r,c) sets the grid layout of plots in the Simulation Data Inspector using the specified numbe...

6 years ago | 0

Submitted

Display Message in Box in Matlab Plot

This code is for display messages in plots.

6 years ago | 1 download |

Solved

Back to basics 21 - Matrix replicating

Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix, generate an output matrix that consists o...

6 years ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

6 years ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

6 years ago

Question

How can i measure reflection of light from plastic or paper images using cam ?

I am writing a code to capture image of paper/plastic objects using logitech cam. I am able to connect take pictures, but i wan...

6 years ago | 1 answer | 0

### 1

answertaking input from two cameras at a same time in Matlab

i did this to get snapshot from two cams at same time: % webcamlist identification clc; clearvars; webcamlist ...

6 years ago | 1

Question

How to categorize paper / plastic image is 2D or 3D object in image ?

I am developing a program to categorise image of paper or plastic object, (Flat or scrambled paper). After taking image , i ne...

6 years ago | 1 answer | 0

### 1

answerimage capture with inbuilt laptop camera

Install "OS Generic Video Interface" <</matlabcentral/answers/uploaded_files/77295/2.jpg>> <</matlabcentral/answers/up...

6 years ago | 4

How can I get imaqtool to use an integrated camera?

Goto Home>Add-Ons>Get Hardware Support Packages>Install from Internet>OS Generic Video Interface Action=Install <</matlab...

6 years ago | 1

Webcam Device ID 1 is in use , how to solve it?

I was having the same problem. but i was able to solve it. Used the following code: clc; clear; close all; objects = imaqfind ...

6 years ago | 10

| accepted