Community Profile

photo

Md. Saif Ansari


Last seen: 1年以上 前 2020 年からアクティブ

Followers: 0   Following: 0

連絡

MATLAB made me enjoy coding :)
So here I am to learn more.

統計

  • Community Group Solver
  • MATLAB Central Treasure Hunt Finisher
  • Commenter
  • Promoter
  • Solver

バッジを表示

Feeds

表示方法

解決済み


Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

2年以上 前

解決済み


Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

2年以上 前

解決済み


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

2年以上 前

解決済み


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

3年以上 前

解決済み


Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

3年以上 前

解決済み


2 b | ~ 2 b
Given a string input, output true if there are 2 b's in it, false if otherwise Examples: 'Macbeth' -> false 'Publius Cor...

3年以上 前

解決済み


Back to basics 22 - Rotate a matrix
Covering some basic topics I haven't seen elsewhere on Cody. Rotate the input matrix 90 degrees counterclockwise (e.g. [1 2; ...

3年以上 前

解決済み


Back to basics 12 - Input Arguments
Covering some basic topics I haven't seen elsewhere on Cody. Return a value equal to the number of input arguments to the fun...

3年以上 前

解決済み


Back to basics 6 - Column Vector
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector, output true or false whether it is a colu...

3年以上 前

解決済み


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

3年以上 前

解決済み


Convert a vector into a number
This is a sub problem related to this problem: <http://www.mathworks.com/matlabcentral/cody/problems/621-cryptomath-addition>...

3年以上 前

解決済み


Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.

3年以上 前

解決済み


Scoring for oriented dominoes
Given a list of ordered pairs, and the order they should be placed in a line, find the sum of the absolute values of the differe...

3年以上 前

解決済み


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.

3年以上 前

解決済み


Perimeter of a semicircle
Given the diameter d, find the perimeter of a semicircle

3年以上 前

解決済み


Given a square and a circle, please decide whether the square covers more area.
You know the side of a square and the diameter of a circle, please decide whether the square covers more area.

3年以上 前

解決済み


Approximation of Pi
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...

3年以上 前

解決済み


Convert radians to degrees
Given input in radians, output to degrees

3年以上 前

解決済み


Volume Pillar
Calculate the volume of a pillar with radius l and heigth ar.

3年以上 前

解決済み


radius of a spherical planet
You just measured its surface area, that is the input.

3年以上 前

解決済み


Pi Estimate 1
Estimate Pi as described in the following link: <http://www.people.virginia.edu/~teh1m/cody/Pi_estimation1.pdf>

3年以上 前

解決済み


Total energy

3年以上 前

解決済み


Potential energy calculation

3年以上 前

解決済み


Kinetic energy calculation

3年以上 前

解決済み


Laws of motion 4

3年以上 前

解決済み


Laws of motion 5

3年以上 前

解決済み


Laws of motion 6

3年以上 前

解決済み


Laws of motion 7

3年以上 前

解決済み


Laws of motion 3

3年以上 前

解決済み


Laws of motion 2

3年以上 前

さらに読み込む