A résolu


MatLab GUI popup duration
HI! I am using GUI for the first time and enjoying it. There is one curious question after I hit the 'Run' button from my .fig f...

plus de 12 ans il y a

A résolu


Make a run-length companion vector
Given a vector x, return a vector r that indicates the run length of any value in x. Each element in r shows how many times the ...

plus de 12 ans il y a

Problème


Only once: cleaning up your columns
We have a logical array (with ones and zeroes). It is simple: after processing every column may only contain a single true value...

plus de 12 ans il y a | 1 | 34 solveurs

A résolu


Check if it is a square or cube of consecutive numbers
Check whether the element of given row vector is a square or cube of consecutive numbers. For example Input x=[4 27 16 25 ...

plus de 12 ans il y a

A résolu


Finding fourier transform of a given vector
Find the fourier transform of a given input vector for ex a=[1 2 3 4] then y=[ 10.0000 + 0.0000i -2.0000 +...

plus de 12 ans il y a

A résolu


Half-Swap
Given a vector with an even number of elements, rearrange it so that the elements in its first half are switched with those i...

plus de 12 ans il y a

A résolu


Homemade: Control Charts
This problem is a simple version of control charts in statistics. Intput consists from 30 or more observations. * Upper limi...

plus de 12 ans il y a

Problème


Insert structure in a parameter-cell array.
When creating Matlab GUI elements, you can mix value pairs with structures in the list of input arguments, e.g. |uicontrol('t...

plus de 12 ans il y a | 3 | 18 solveurs

A résolu


Tony's trick for duplicating an mx1 vector n times
Without using repmat, or for loop, or concatenation, create a function to duplicate a vector, v, a specified number of times, n....

plus de 12 ans il y a

Problème


Wrap a vector, but insert NaN's at the wrap-positions.
When you plot a line that wraps, and do not want the sawtooth shape to show up in the plot, you can either draw all separate lin...

plus de 12 ans il y a | 1 | 21 solveurs

A résolu


Insert certain elements into a vector.
We start with vector V. Some values W will be inserted into V, at positions U. Say, |V| contains |[1 2 3 4 5]| and |W| is |[0...

plus de 12 ans il y a

Problème


Insert certain elements into a vector.
We start with vector V. Some values W will be inserted into V, at positions U. Say, |V| contains |[1 2 3 4 5]| and |W| is |[0...

plus de 12 ans il y a | 2 | 34 solveurs

A résolu


ベクトルのスケーリング
入力したベクトルの大きさを1にしてください。

plus de 12 ans il y a

A résolu


DNA N-Gram Distribution
Given a string s and a number n, find the most frequently occurring n-gram in the string, where the n-grams can begin at any poi...

plus de 12 ans il y a

A résolu


Create a two dimensional zero matrix
You have to create a zero matrix of size (mxn) whose inputs are m and n and the elements of your matrix should be zeros. Exam...

plus de 12 ans il y a

A résolu


Unit Matrix
Given n, you should return an n-by-n unit matrix. Example: If input is n=2 then A = [ 1 0 0 1 ] If input ...

plus de 12 ans il y a

A résolu


Lowest sum from a group of digits
Hi there. It's James's daughter here again, and my third grade math teacher is up to her old tricks. This time, she's giving u...

plus de 12 ans il y a

A résolu


Get input and output variable names
Given a string representing a function header, return the variable names used for the inputs and outputs. For example if inp...

plus de 12 ans il y a

A résolu


Fibonacci-Sum of Squares
Given the Fibonacci sequence defined by the following recursive relation, * F_n = F_(n-1) + F_(n-2) * where F_0 = 0 and F_1 ...

plus de 12 ans il y a

A résolu


Reassign cell contents to empty variables, preserving cell content data type
Given a cell array C, return a cell array D with the following specifications: 1. D has the same size as the input C. 2. E...

plus de 12 ans il y a

A résolu


Check if integer
Given a vector of elements, determine if each element is an integer and return true or false accordingly.

plus de 12 ans il y a

A résolu


How unique?
Sometimes, when we check unique entries of vector we would like to know how many times each value occurs. Given vector of num...

plus de 12 ans il y a

A résolu


Power of n ?
Determine if _x_ (positive integer) is a power of _n_, return true or false accordingly.

plus de 12 ans il y a

A résolu


Palindrome
Check if a given string is a palindrome or not. For example, a = 'amoreroma' is a palindrome. But b = 'xyz' is not. Return...

plus de 12 ans il y a

A résolu


Another colon problem
This is simple problem based on problems 555, 801, 1118, etc. Create an index vector from two input vectors. Example: ...

plus de 12 ans il y a

A résolu


Find the index of nth maximum of a row vector of real numbers
Given a vector of real numbers x, find the index idx of _n_ th maximum value. If nth maximum occurs more than once, return the i...

plus de 12 ans il y a

Problème


Schrödinger dog
Everyone knows that dogs are less unpredictable than cats. But is that proven? Is that measurable at all? YES! NOW IT IS! ...

plus de 12 ans il y a | 3 | 25 solveurs

A résolu


Loading/Expanding a ZIP file from File Exchange
This challenge is to load a ZIP file from Mathworks File Exchange and UNZIP the contents. *Input:* url_link of ZIP'd file ...

plus de 12 ans il y a

A résolu


Compute Fibonacci Number
Compute the _n_-th Fibonacci Number f(0) = 0, f(1) = 1, f(2) = 1, f(3) = 2, ... f(42) = 267914296

plus de 12 ans il y a

Problème


Number of problems
No, you don't read it wrong: this assignment is to return the number of this problem (and not the problem of this number).

plus de 12 ans il y a | 1 | 126 solveurs

Charger plus