Resuelto


Reverse the Words (not letters) of a String
*Description* Change the words of a string such that the words appear in reverse order. You may assume that the string is a n...

más de 1 año hace

Resuelto


QWERTY Shift Encoder
Encode a string using the QWERTY shift code. This code is where you touch type but are offset by one character to the right. O...

más de 1 año hace

Resuelto


Guess Cipher
Guess the formula to transform strings as follows: 'Hello World!' --> 'Ifmmp Xpsme!' 'Can I help you?' --> 'Dbo J ifm...

más de 1 año hace

Resuelto


Calculate the Hamming distance between two strings
Inspired by a similar Cody problem found <http://www.mathworks.com/matlabcentral/cody/problems/93-calculate-the-levenshtein-dist...

más de 1 año hace

Resuelto


letter yes yes & letter no no
Split a string into two strings, wherein the first string has all alphabetic letters and the second string has all the remaining...

más de 1 año hace

Resuelto


Space Saver
Remove all characters that are below a space in ASCII value.

más de 1 año hace

Resuelto


Flag largest magnitude swings as they occur
You have a phenomenon that produces strictly positive or negative results. delta = [1 -3 4 2 -1 6 -2 -7]; Marching through thi...

más de 1 año hace

Respondida
I am having empty cells while saving the extracted features inside loops
You never tell Matlab to put the next value of Extracted into a new cell. I.e., you have not increased the cell array index wit...

más de 1 año hace | 0

Respondida
Finding minimum within a set of rows below a certain point?
I suggest using the find command (with Z>=2) with row & column as outputs. Find the min and max column values and their associa...

más de 1 año hace | 0

Respondida
calculate the maximum of every 24 data in matrices
Have you considered reshaping the 2D matrix into a 3D matrix -- (number of sensors) x 24 x days? Then you could use max for eac...

más de 1 año hace | 1

Respondida
Show only amount of n values on a continuous plot
I presume that you are reading the serial data into a timetable or set of vectors (Time, Data, ...). Instead of plotting the wh...

casi 2 años hace | 0

Respondida
Overlay a scatterplot of continuous data with boxplots summarizing groupings of the same data
Have you tried plotting the boxplot on the secondary y-axis and hide its x-labels?

casi 2 años hace | 0

Respondida
Importing .mat files in a loop
for z=1:20 filename = ['data_', num2str(z)]; s(z) = load(filename); % Load variables into a structure end

casi 2 años hace | 1

| aceptada

Respondida
How to stop a for loop by press a button APP designer ?
Make the Stop button a toggle button. Within the FOR loop, check the status of the Stop button. If it is toggled-on, then brea...

más de 2 años hace | 0

| aceptada

Pregunta


stack command errors with multiple column variables of different data types
I have a table (imported from a poorly-designed spreadsheet) with repeated column variables I would like to stack. The fields a...

más de 2 años hace | 1 respuesta | 0

1

respuesta

Resuelto


Chess probability
The difference in the ratings between two players serves as a predictor of the outcome of a match (the <http://en.wikipedia.org/...

más de 2 años hace

Resuelto


Determine the number of odd integers in a vector
Determine the number of unique odd integers in a vector. Examples: Input x = [2 5 8 3 7 1]; Output y = 4; Inp...

más de 2 años hace

Resuelto


Insert zeros into vector
Insert zeros after each elements in the vector. Number of zeros is specified as the input parameter. For example: x = [1 ...

más de 2 años hace

Resuelto


Rotate input square matrix 90 degrees CCW without rot90
Rotate input matrix (which will be square) 90 degrees counter-clockwise without using rot90,flipud,fliplr, or flipdim (or eval)....

más de 2 años 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)...

más de 2 años hace

Resuelto


Make an awesome ramp for a tiny motorcycle stuntman
Okay, given a vector, say v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 3 6 9 11 0; 6 9 ...

más 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 ...

más de 2 años hace

Resuelto


surrounded matrix
With a given matrix A (size m x n) create a matrix B (size m+2 x n+2) so that the matrix A is surrounded by ones: A = [1 2 ...

más de 2 años 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 ...

más de 2 años hace

Resuelto


Reverse the elements of an array
Reverse the order of elements in an array: eg: input X = [ 1 2 3 ; 4 5 6 ; 7 8 9 ] o...

más 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, ...

más de 2 años hace

Resuelto


Encode Roman Numerals
Create a function taking a non-negative integer as its parameter and returning a string containing the Roman Numeral representat...

más 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. ...

más de 2 años hace

Resuelto


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

más de 2 años hace

Resuelto


Remove the polynomials that have positive real elements of their roots.
The characteristic equation for a dynamic system is a polynomial whose roots indicate its behavior. If any of the roots of the p...

más de 2 años hace

Cargar más