Resuelto

String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values
<http://www.mathworks.com/help/matlab/characters-and-strings.html String array> and cell array are two types of containers for s...

alrededor de 2 años hace

Resuelto

Remove element(s) from cell array
You can easily remove an element (or a column in any dimension) from a normal matrix, but assigning that value (or range) empty....

alrededor de 2 años hace

Resuelto

Convert a Cell Array into an Array
Given a square cell array: x = {'01', '56'; '234', '789'}; return a single character array: y = '0123456789'

alrededor de 2 años hace

Resuelto

Find last non-zero in a given dimension
You are given a logical matrix *BW* _of any dimension_, and a dimension *dim*. You need to find the locations of the last non-ze...

alrededor de 2 años hace

Resuelto

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

alrededor de 2 años hace

Resuelto

Rounding
Round 10.67 and make 'y' equal to that number.

alrededor de 2 años hace

Resuelto

Convert a numerical matrix into a cell array of strings
Given a numerical matrix, output a *cell array of string*. For example: if input = 1:3 output is {'1','2','3'} whic...

alrededor de 2 años hace

Resuelto

Reindex a vector
You are given two vectors of equal length. Vector N has numeric values (no Inf or NaN) while vector IDX has integers. Place th...

alrededor de 2 años hace

Resuelto

Square a Number
Given an input x, return y, which is equal to the square of x.

alrededor de 2 años hace

Resuelto

02 - Vector Variables 5
_eVec_ = _Hello_ ( _eVec_ is a string, which is a vector of characters )

alrededor de 2 años hace

Resuelto

Sum of adjacent elements in a vector
Given a vector v, return a vector s containting the sum of every two adjacent elements in the vector. Every element s(i) cont...

alrededor de 2 años hace

Resuelto

Split a string into chunks of specified length
Given a string and a vector of integers, break the string into chunks whose lengths are given by the elements of the vector. Ex...

alrededor de 2 años hace

Resuelto

Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

alrededor de 2 años hace

Resuelto

Longest Divisor Run
Given the vector a, find the longest run of consecutive numbers that can be evenly divided by the same number d where d > 1. ...

alrededor de 2 años hace

Resuelto

Connect Four Win Checker
<http://en.wikipedia.org/wiki/Connect_Four Connect Four> is a game where you try to get four pieces in a row. For this problem, ...

alrededor de 2 años hace

Resuelto

Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

alrededor de 2 años hace

Resuelto

Create a cell array out of a struct
Create a cell array out of a (single) struct with the fieldname in the first column and the value in the second column: in: ...

alrededor de 2 años hace

Resuelto

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

alrededor de 2 años hace

Resuelto

Angle between two vectors
You have two vectors , determine the angle between these two vectors For example: u = [0 0 1]; v = [1 0 0]; The a...

alrededor de 2 años hace

Resuelto

Flip the main diagonal of a matrix
Given a n x n matrix, M, flip its main diagonal. Example: >> M=magic(5); >> flipDiagonal(M) 9 24 1 ...

alrededor de 2 años hace

Resuelto

Given a 4x4 matrix, swap the two middle columns
If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4]; then the result is ans = 1 3 2 4 1 3 2...

alrededor de 2 años hace

Resuelto

alrededor de 2 años hace

Resuelto

The 5th Root
Write a function to find the 5th root of a number. It sounds easy, but the typical functions are not allowed (see the test su...

alrededor de 2 años hace

Resuelto

Duplicate each element of a vector.
for an n-dimensional vector x, the function should return another vector 2n-dimension which each element is repeated twice. Ex...

alrededor de 2 años hace

Resuelto

frame of the matrix
Given the matrix M, return M without the external frame.

alrededor de 2 años hace

Resuelto

Get the area codes from a list of phone numbers
Given a string of text with phone numbers in it, return a unique'd cell array of strings that are the area codes. s = '508-6...

alrededor de 2 años hace

Resuelto

Omit columns averages from a matrix
Omit columns averages from a matrix. For example: A = 16 2 3 13 5 11 10 8 9 7 ...

alrededor de 2 años hace

Resuelto

Knight's Tour Checker
Given a matrix a, determine whether or not a legal <http://en.wikipedia.org/wiki/Knight's_tour knight's tour> is present. The kn...

alrededor de 2 años hace

Resuelto

We love vectorized solutions. Problem 1 : remove the row average.
Given a 2-d matrix, remove the row average from each row. Your solution MUST be vectorized. The solution will be tested for ac...

alrededor de 2 años hace

Resuelto

Return elements unique to either input
Given two numeric inputs a and b, return a row vector that contains the numbers found in only a or only b, but not both. For ex...

alrededor de 2 años hace