Community Profile

# Sameer Hussain

##### Last seen: 24 dagen ago
73 total contributions since 2020

View details...

Contributions in
View by

Solved

Check that number is whole number
Check that number is whole number Say x=15, then answer is 1. x=15.2 , then answer is 0. <http://en.wikipedia.org/wiki/Whole...

2 maanden ago

Solved

Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

2 maanden ago

Solved

Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

2 maanden ago

Solved

Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

2 maanden ago

Solved

Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

2 maanden ago

Solved

Find my daddy long leg (No 's')
Given the ratio of the two legs (longer / shorter), and the hypotenuse length, find the value of the bigger leg.

2 maanden ago

Solved

find

2 maanden ago

Solved

Is my wife right? Now with even more wrong husband
Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...

2 maanden ago

Solved

Get the length of a given vector
Given a vector x, the output y should equal the length of x.

2 maanden ago

Solved

Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

2 maanden ago

Solved

Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

2 maanden ago

Solved

Create a vector
Create a vector from 0 to n by intervals of 2.

2 maanden ago

Solved

Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

2 maanden ago

Solved

Reverse a matrix
Its simple. You have to reverse a given matrix.

2 maanden ago

Solved

Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.

2 maanden ago

Solved

sum of first 'n' terms
Given n=10, find the sum of first 'n' terms Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these n=10 terms is 55...

2 maanden ago

Solved

Find the area of the four walls
If length, breadth and height of the walls are given, find the area of the four walls.

2 maanden ago

Solved

Times 3 problem
When you enter the number, it should return the number multiplied by 3

2 maanden ago

Solved

If-then-else
Complete the function below such that if the value of x is in the range 10 to 14, inclusive, the value 18 is assigned to y. Oth...

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

2 maanden ago

Solved

Fahrenheit to Celsius converter
Convert Fahrenheit to Celsius degrees.

2 maanden ago

Solved

find

2 maanden ago

Solved

find

2 maanden ago

Solved

find

2 maanden ago

Solved

find

2 maanden ago

Solved

find

2 maanden ago

Solved

You just measured its surface area, that is the input.

2 maanden ago

Solved

find

2 maanden ago

Solved

find

2 maanden ago

Solved

find

2 maanden ago