Statistiques
RANG
3 456
of 295 467
RÉPUTATION
16
CONTRIBUTIONS
0 Questions
7 Réponses
ACCEPTATION DE VOS RÉPONSES
0.00%
VOTES REÇUS
4
RANG
15 640 of 20 234
RÉPUTATION
8
CLASSEMENT MOYEN
0.00
CONTRIBUTIONS
0 Fichier
TÉLÉCHARGEMENTS
1
ALL TIME TÉLÉCHARGEMENTS
89
CONTRIBUTIONS
0 Publications
CONTRIBUTIONS
0 Public Chaîne
CLASSEMENT MOYEN
CONTRIBUTIONS
0 Point fort
NOMBRE MOYEN DE LIKES
Feeds
circshift columns of array by different shift size
I think this does what you want. HH=cell2mat(arrayfun(@(k) circshift(d(:,k),k),1:size(d,2),'uni',0)) HH = ...
plus de 9 ans il y a | 1
| A accepté
How to find all unique Names in a Matrix
I think the problem is the NaNs. If you don't remove them, as Image Analyst does when defining ca2, the unique function seems t...
plus de 9 ans il y a | 0
A résolu
Solve the Sudoku Row
*Description* A simple yet tedious task occurs near the end of most Sudoku-solving algorithms, computerized or manual. The ta...
plus de 9 ans il y a
A résolu
Number of 1s in the Binary Representation of a Number
*Description* Return the number of 1s in the (unsigned integer) binary representation of a number. This function should be ab...
plus de 9 ans il y a
A résolu
Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...
plus de 9 ans il y a
how i will choose a random element of a matrix and then find in which row,column it is
I think something like this would work. is01 = true; initialize flag for while loop while is01 ind=randi(num...
plus de 9 ans il y a | 0
Accessing multidimensional array with pairwise indices
I think your for loop is only getting data off the top page of the array. When I run your code, B is [ni 1], but all the others...
plus de 9 ans il y a | 1
Accessing multidimensional array with pairwise indices
I think sub2ind is the recommended approach in most cases. If you want to avoid repmat, you can do something like this. >> ...
plus de 9 ans il y a | 0
Assigning values to vectors of different lenghts
It's not clear what you need *a* for. You can make *d* directly from *c* and *b* as follows: >> d=b(c) d = ...
plus de 9 ans il y a | 2
A résolu
Rumis Scorer 4
This problem is very similar to <https://www.mathworks.com/matlabcentral/cody/problems/3101-rumis-scorer-3 Rumis Scorer 3>. The ...
plus de 9 ans il y a
A résolu
Rumis Scorer 3
<http://en.wikipedia.org/wiki/Rumis Rumis> is a multiplayer 3D block board game where the goal is to have the most squares visib...
plus de 9 ans il y a
A résolu
Rumis Scorer 2
<http://en.wikipedia.org/wiki/Rumis Rumis> is a multiplayer 3D block board game where the goal is to have the most squares visib...
plus de 9 ans il y a
A résolu
Rumis Scorer 1
<http://en.wikipedia.org/wiki/Rumis Rumis> is a multiplayer 3D block board game where the goal is to have the most squares visib...
plus de 9 ans il y a
A résolu
Magic!
Check whether the input matrix is a normal magic square: <http://en.wikipedia.org/wiki/Magic_square> Output the logical va...
presque 10 ans il y a
A résolu
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...
presque 10 ans il y a
A résolu
Set the array elements whose value is 13 to 0
Input A either an array or a vector (which can be empty) Output B will be the same size as A . All elements of A equal to 13...
presque 10 ans il y a
A résolu
Make a 1 hot vector
Make a vector of length _N_ that consists of all zeros except at index _k_, where it has the value 1. Example: Input ...
presque 10 ans il y a
A résolu
Find the palindrome
Given the string a, find the longest palindromic sub-string b. So when a = 'xkayakyy'; you should return b = 'kayak';
presque 10 ans il y a
A résolu
Word Counting and Indexing
You are given a list of strings, each being a list of words divided by spaces. Break the strings into words, then return a maste...
presque 10 ans il y a
A résolu
Tic Tac Toe FTW
Given a tic tac toe board: * 1 represents X * 0 represents empty. * -1 represents O It is X's move. If there is an imme...
presque 10 ans il y a
A résolu
Given an unsigned integer x, find the largest y by rearranging the bits in x
Given an unsigned integer x, find the largest y by rearranging the bits in x. Example: Input x = 10 Output y is 12 ...
presque 10 ans il y a
A résolu
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 ...
presque 10 ans il y a
A résolu
Increment a number, given its digits
Take as input an array of digits (e.g. x = [1 2 3]) and output an array of digits that is that number "incremented" properly, (i...
presque 10 ans il y a
A résolu
Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...
presque 10 ans il y a
A résolu
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...
presque 10 ans il y a
A résolu
Remove NaN ?
input -> matrix (n*m) with at least one element equal to NaN; output -> matrix(p*m), the same matrix where we deleted the enti...
presque 10 ans il y a
A résolu
Remove DC
Input x is the sampled signal vector, may have both AC and DC components. Output y should not contain any DC component. Examp...
presque 10 ans il y a
A résolu
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...
presque 10 ans il y a
A résolu
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>...
presque 10 ans il y a
A résolu
feeling VERY lucky?
Just like Matthew's problem <http://www.mathworks.com/matlabcentral/cody/problems/2793 2793> and Edward's problem <http://www.ma...
presque 10 ans il y a