Community Profile

photo

mahesh kumar


Last seen: Today

CANARITE

409 total contributions since 2015

learning Matlab..

Contact

mahesh kumar's Badges

  • Introduction to MATLAB Master
  • Curator
  • Speed Demon
  • Creator
  • Community Group Solver
  • Commenter
  • Promoter
  • CUP Challenge Master
  • Solver
  • 5-Star Galaxy Level 4
  • First Answer
  • Personal Best Downloads Level 3
  • First Review
  • First Submission

View details...

Contributions in
View by

Solved


Stairs
Make an n by n matrix, where the elements are ones and zeros. In the main diagonal, and under that, there should be only ones (...

etwa 6 Stunden ago

Solved


Matrix for beginners
Multiply x and y elemwise.

etwa 6 Stunden ago

Solved


Problem for beginners
M is a nxm matrix. Swap the fist and the second last column with eachother. X=[1 2 3;4 5 6;7 8 9] Y=[2 1 3;5 4 6;8 7 9]

etwa 6 Stunden ago

Solved


Problem for beginners
Suppose that x is a column vector, with at least a length of 6. Delete the 2., 6., and the second last row. Example: X=[1;2;3...

etwa 7 Stunden ago

Solved


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

etwa 7 Stunden ago

Solved


Box
Give the volume of a box, x is equal to the body diagonal.

etwa 7 Stunden ago

Solved


Square
X is a number, write a code, where Y should be the square of X.

etwa 7 Stunden ago

Solved


Matrix problem for beginners
Make a matrix [0,0,0;1,1,1;2,2,2]. X=[0,1,2]

etwa 7 Stunden ago

Solved


Find the position of planet in solarsystem
Write a funtion named *nthplanet* which takes name of the planet as input string and provides the position of the planet, starti...

etwa 14 Stunden ago

Solved


Back to basics 3 - Temp Directory
Covering some basic topics I haven't seen elsewhere on Cody. Return a string that is the path to the system's current temp di...

etwa 15 Stunden ago

Solved


Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

etwa 15 Stunden ago

Solved


Find the sum of the elements in the "second" diagonal
Find the sum of the elements in the diagonal that starts at the top-right corner and ends at the bottom-left corner.

etwa 15 Stunden ago

Solved


Counting Money
Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99. E...

etwa 15 Stunden ago

Solved


Counting in Finnish
Sort a vector of single digit whole numbers alphabetically by their name, in Finnish. See the Wikipedia page for <http://en.wik...

etwa 15 Stunden ago

Solved


Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
The given function returns the index of the maximum value in a given matrix. such as X=[4,3,4,5,9,12,0,5] Ans= 6 if maxim...

etwa 16 Stunden ago

Solved


Concatenate two strings
Its very easy. Just concatenate two strings.

etwa 16 Stunden ago

Solved


Tricky timing
Write a function that takes between 0.5 seconds and 0.6 seconds to run.

etwa 16 Stunden ago

Solved


All your base are belong to us
Find the base _b_ logarithm of the input decimal number _x_. Express the output as a decimal number. The first argument is the n...

etwa 16 Stunden ago

Solved


Calculate BMI
Given a matrix |hw| (height and weight) with two columns, calculate BMI using these formulas: * 1 kilogram = 2.2 pounds * 1 ...

etwa 16 Stunden ago

Solved


Return the Fibonacci Sequence
Write a code which returns the Fibonacci Sequence such that the largest value in the sequence is less than the input integer N. ...

etwa 16 Stunden ago

Solved


The Goldbach Conjecture, Part 2
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

etwa 16 Stunden ago

Solved


Vectors counting by 2
Create a vector numbers from 7 to 15 in increments of 2

etwa 17 Stunden ago

Solved


Find out missing number from a vector of 9 elements
You are given a vector of size 9, x = [x1 x2 x3 x4 x5 x6 x7 x8 x9] Elements of x may be randomly selected without repeati...

etwa 17 Stunden ago

Solved


Getting the absolute index from a matrix
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to get the <http://www.ma...

etwa 17 Stunden ago

Solved


Subset Sum
Given a vector v of integers and an integer n, return the the indices of v (as a row vector in ascending order) that sum to n. I...

etwa 17 Stunden ago

Solved


The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

etwa 19 Stunden ago

Solved


First non-zero element in each column
For a given matrix, calculate the index of the first non-zero element in each column. Assuming a column with all elements zero ...

etwa 20 Stunden ago

Solved


Symmetry of vector
Determine whether the vector is symmetric or not (vector could be even or odd in length). For example: x = [1 2 3 3 2 1] ...

etwa 20 Stunden ago

Solved


Who invented zero?
We know the importance zero in computer science, mathematics... but who invented zero? Clue: He was the first in the line ...

etwa 21 Stunden 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...

etwa 21 Stunden ago

Load more