Risolto


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

oltre 4 anni fa

Risolto


Find max
Find the maximum value of a given vector or matrix.

oltre 4 anni fa

Risolto


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

oltre 4 anni fa

Risolto


Inner product of two vectors
Find the inner product of two vectors.

oltre 4 anni fa

Risolto


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

oltre 4 anni fa

Risposto
data extract from 3d line plot?
See example code and modify according to your data: %% Make test data fig = figure; ax = axes(fig); nPoint = 1001; nSerie...

oltre 4 anni fa | 0

Risolto


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

oltre 4 anni fa

Risposto
Notify event in a class
You are very close to having it working! In your Notify callback, you make a call to the constructor ClassA rather than a specif...

oltre 4 anni fa | 0

| accettato

Domanda


Intermittent Bug with Base Workspace Variable editor
Problem I have a recurring issue that I am not sure how to reproduce: occasionally, functions called from the base workspace (e...

oltre 4 anni fa | 0 risposte | 0

0

risposte

Risolto


Trimming Spaces
Given a string, remove all leading and trailing spaces (where space is defined as ASCII 32). Input a = ' singular value deco...

oltre 4 anni fa

Risolto


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

oltre 4 anni fa

Risolto


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

oltre 4 anni fa

Risolto


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

oltre 4 anni fa

Risposto
Adding a column every nth column without replacing existing one
Test Data A = [1 2 3 4; 5 6 7 8; 9 10 11 12]; Function function A = addDataNthColumn(A,B,n) % ADDDATANTHCOLUMN Add data in ...

oltre 4 anni fa | 1

Risolto


Find relatively common elements in matrix rows
You want to find all elements that exist in greater than 50% of the rows in the matrix. For example, given A = 1 2 3 5 ...

oltre 4 anni fa

Risolto


Reverse Run-Length Encoder
Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...

oltre 4 anni fa

Risposto
Two different size matrices multiply the overlapped element
Cool question. Maybe there is a better way to do it with built-in Matlab features, interested to see others approach. Strategy ...

oltre 4 anni fa | 0

Risolto


Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

oltre 4 anni fa

Risolto


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

oltre 4 anni fa

Risolto


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

oltre 4 anni fa

Risolto


Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

oltre 4 anni fa

Risolto


Quote Doubler
Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...

oltre 4 anni fa

Risolto


Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

oltre 4 anni fa

Risolto


Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

oltre 4 anni fa

Risposto
Concatenate data from processing of imported text files
Not the most efficient, but you could do: directory = 'D:\PhD\Matlab code';%path from where Iam extracting files textfiles = f...

oltre 4 anni fa | 0

| accettato

Risposto
How to remove data from a plot when box in checkbox is deselected
Edit: After getting the graph_function, removing the old suggestions for clarity. % These two lines are most likely to change, ...

oltre 4 anni fa | 1

| accettato

Risolto


Counting Money
Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99. E...

oltre 4 anni fa

Risolto


Pangrams!
A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once. Example: Input s ...

oltre 4 anni fa

Risolto


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

oltre 4 anni fa

Risolto


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

oltre 4 anni fa

Carica altro