Community Profile # Hassan Mehmood Khan

Last seen: 1 year ago Active since 2017

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

All
• • • • • • • • • #### Content Feed

View by

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...

1 year ago | 1 answer | 1

### 1

Solved

Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

1 year ago

Solved

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...

1 year 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...

3 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...

3 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...

3 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...

3 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...

3 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...

3 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...

3 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...

3 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....

3 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.

3 years ago

Why is the figure not displaying anything ?

3 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...

3 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 ...

4 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...

4 years ago | 0

Submitted

Display Message in Box in Matlab Plot
This code is for display messages in plots. 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...

4 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...

4 years ago

Solved

Given a and b, return the sum a+b in c.

4 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:...

4 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...

4 years ago | 1 answer | 0

### 1

taking 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 ...

4 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...

4 years ago | 1 answer | 0

### 1

image capture with inbuilt laptop camera

4 years ago | 4