Estadística
0 Problemas
53 Soluciones
CLASIFICACIÓN
167.688
of 295.527
REPUTACIÓN
0
CONTRIBUCIONES
4 Preguntas
1 Respuesta
ACEPTACIÓN DE RESPUESTAS
75.0%
VOTOS RECIBIDOS
0
CLASIFICACIÓN
of 20.242
REPUTACIÓN
N/A
EVALUACIÓN MEDIA
0.00
CONTRIBUCIONES
0 Archivos
DESCARGAS
0
ALL TIME DESCARGAS
0
CLASIFICACIÓN
10.013
of 154.057
CONTRIBUCIONES
0 Problemas
53 Soluciones
PUNTUACIÓN
520
NÚMERO DE INSIGNIAS
2
CONTRIBUCIONES
0 Publicaciones
CONTRIBUCIONES
0 Público Canales
EVALUACIÓN MEDIA
CONTRIBUCIONES
0 Temas destacados
MEDIA DE ME GUSTA
Feeds
Pregunta
Different result when adding variables
This is in MATLAB R2016a. The addition 1:3 + [0 0 5] gives 1 2 3 if we assign x = 1:3; and y = [...
más de 8 años hace | 1 respuesta | 0
1
respuestaResuelto
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...
casi 11 años hace
Pregunta
Anonymous functions and integration
I want to integrate an anonymous function but be able to manipulate it first. For example f = @(x) [x -x sin(x)]; r = ...
más de 11 años hace | 2 respuestas | 0
2
respuestasPregunta
Intersection of squares with curve
Say that you have a collection of squares in 2D, defined by their corner points (A,B,C,D) and having a unique identifying number...
más de 11 años hace | 1 respuesta | 0
1
respuestaResuelto
Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...
casi 12 años hace
Resuelto
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]
casi 12 años hace
Pregunta
How to calculate sum of specific array elements
Let's say you have two arrays of the same size: one with the data (x) and one carrying some indices that characterize the data (...
alrededor de 12 años hace | 1 respuesta | 0
1
respuestaResuelto
Counting Sequence
Given a vector x, find the "counting sequence" y. A counting sequence is formed by "counting" the entries in a given sequence...
casi 13 años hace
Resuelto
Balanced number
Given a positive integer find whether it is a balanced number. For a balanced number the sum of first half of digits is equal to...
casi 13 años hace
Resuelto
Remove all the words that end with "ain"
Given the string s1, return the string s2 with the target characters removed. For example, given s1 = 'the main event' your ...
casi 13 años hace
Resuelto
Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...
casi 13 años hace
Resuelto
Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.
casi 13 años 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 ...
casi 13 años hace
Resuelto
Making change
Given an amount of currency, return a vector of this form: [100 50 20 10 5 2 1 0.5 0.25 0.1 0.05 0.01] Example: Input a = ...
casi 13 años hace
Resuelto
Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...
casi 13 años hace
Resuelto
Pascal's Triangle
Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...
casi 13 años hace
Resuelto
The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".
casi 13 años hace
Resuelto
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...
casi 13 años hace
Resuelto
Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...
casi 13 años hace
Resuelto
Return a list sorted by number of occurrences
Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...
casi 13 años hace
Resuelto
Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...
casi 13 años hace
Resuelto
Remove all the consonants
Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...
casi 13 años hace
Resuelto
Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...
casi 13 años hace
Resuelto
Quote Doubler
Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...
casi 13 años hace
Resuelto
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...
casi 13 años hace
Resuelto
Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...
casi 13 años hace
Resuelto
Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...
casi 13 años hace