Resuelto

Column norms of a matrix

Given a matrix M, return a vector y such that for each k y(k)=norm(M(:,k)) (y(k) is the Euclidean norm of the k-th col...

7 meses hace

Resuelto

Volume difference between Ellipsoid and Sphere

Given an ellipsoid of semi principal axis (a,b,c) find the volume of the difference between this ellipsoid and the sphere with...

7 meses hace

Resuelto

Back to basics 2 - Function Path

Covering some basic topics I haven't seen elsewhere on Cody. Given a string that is the name of a MATLAB function, return a s...

7 meses hace

Resuelto

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

7 meses hace

Resuelto

Back to basics 19 - character types

Covering some basic topics I haven't seen elsewhere on Cody. Return the number of punctuation characters in the input variabl...

7 meses hace

Resuelto

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

7 meses hace

Resuelto

Test if a matrix is symmetric

Write a logical function that returns 1 if the input matrix is symmetric and 0 otherwise.

7 meses hace

Resuelto

Calculate value of capacitor

Given the value of resistance and time at which capacitor charges to it's 99%. calculate the value of capacitor

7 meses hace

Resuelto

Is it column vector?

Is it column vector? Check vector for column vector without using iscolumn function.

7 meses hace

Resuelto

Replace odd number in given matrix by zero

Replace the odd numbers in a given matrix with zero. Example A = [ 17 24 1 8 15 23 5 7 ...

7 meses hace

Resuelto

Average speed for the entire trip

The input is two speeds (for the trip and return trip) and output is average speed. Assume units are consistent, say miles per h...

7 meses hace

Resuelto

Generate vector according to sign of vector

Generate vector according to sign of vector Example: If A=[-2 0 5] then output must be[-1 0 1] meaning that for negative n...

7 meses hace

Resuelto

Vector Multiplication

Vector Multiplication of three matrix as shown in test cases.

7 meses hace

Resuelto

Related Vectors

I have two vectors A & B. If the values in vector A is zero then the corresponding value in vector B should be zero. Example:...

7 meses hace

Resuelto

All capital?

Are all the letters in the input string capital letters? Examples: 'MNOP' -> 1 'MN0P' -> 0

7 meses hace

Resuelto

Get the elements of diagonal and antidiagonal for any m-by-n matrix

In the problem <http://www.mathworks.com/matlabcentral/cody/problems/858-permute-diagonal-and-antidiagonal Problem 858. Permute ...

7 meses hace

Resuelto

Sum the elements in either diagonal of a square matrix

Sum the elements of a square matrix that lie on either the major diagonal or anti-diagonal. (Include all elements that are part ...

7 meses hace

Resuelto

Replace Nonzero Numbers with 1

Given the matrix x, return the matrix y with non zero elements replaced with 1. Example: Input x = [ 1 2 0 0 0 ...

7 meses hace

Resuelto

Matrix with different incremental runs

Given a vector of positive integers a = [ 3 2 4 ]; create the matrix where the *i* th column contains the vector *1:a(i)...

7 meses hace

Resuelto

Armstrong Number

Determine whether the given input n-digit number is Armstrong Number or not. Return True if it is an Armstrong Number. An n-D...

7 meses hace

Resuelto

Television Screen Dimensions

Given a width to height ratio of a TV screen given as _w_ and _h_ as well as the diagonal length of the television _l_, return t...

7 meses hace

Resuelto

Narcissistic number ?

Inspired by Problem 2056 created by Ted. In recreational number theory, a narcissistic number is a number that is the sum of ...

7 meses hace

Resuelto

Find the two most distant points

Given a collection of points, return the indices of the rows that contain the two points most distant from one another. The inpu...

7 meses hace

Resuelto

Fill a zeros matrix

The aim is to fill an array of all zeros given a numerical value and the index of row and columns for this value. 3 Inputs: ...

7 meses hace

Resuelto

Set some matrix elements to zero

First get the maximum of each *row*, and afterwards set all the other elements to zero. For example, this matrix: 1 2 3 ...

7 meses hace

Resuelto

Divisible by 11

Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

7 meses hace