Community Profile

photo

Stephen Cobeldick


Last seen: Today
7 043 total contributions since 2014

Suspensa Vix Via Fit

Stephen Cobeldick's Badges

  • Grand Master
  • Personal Best Downloads Level 4
  • Editor's Pick
  • First Review
  • 5-Star Galaxy Level 5
  • GitHub Submissions Level 3
  • First Submission
  • 36 Month Streak
  • Thankful Level 4
  • Revival Level 2
  • Knowledgeable Level 4
  • First Answer

View details...

Contributions in
View by

Answered
Compare strings of different size/length
in1 = 'Class music n. 12 160b'; in2 = {'Classical musical n. 12 160beats','Techno music n. 7 120beats','Rock disco n. 12 140bea...

en dag ago | 0

Answered
Find, sort and assign values in matrix
q3 = [ 1.0000 2.0000 90.0000 4.9424 2.0000 3.0000 91.0000 4.3018 3.0000 4.0000 92.0000 ...

en dag ago | 0

Answered
plotting using for loop
"...can some body tell me what i am doing wrong or if i am missing something in my code." The main problem is that you are not ...

en dag ago | 0

Answered
I would like to create an array of cos*n*x with n=0,1,2,3...N...
Why do you need a loop? L = 51; N = (L-1)/2; A = cos((0:N)*pi)

2 dagar ago | 1

| accepted

Answered
convert binary string into hex
str = '0101010011101010'; fun = @(s)dec2hex(bin2dec(s)); out = regexprep(str,'.{1,4}(?=(.{4})*$)','${fun($&)}')

3 dagar ago | 1

Answered
How to plot e^(-2n)
f = @(x)exp(-2*x); fplot(f)

3 dagar ago | 0

| accepted

Answered
load multiple files in right order
Download my FEX submission natsortfiles: https://www.mathworks.com/matlabcentral/fileexchange/47434-natural-order-filename-sort...

4 dagar ago | 0

| accepted

Answered
I have a loop that generates a new matrix with each iteration. How do I store the matrix for each iteration?
Use a cell array: C = cell(1,N); for i = .. your loop C{i} = .. end https://www.mathworks.com/help/matlab/matlab_prog/a...

5 dagar ago | 0

| accepted

Submitted


MatPlotLib Perceptually Uniform Colormaps
MatPlotLib's default perceptually uniform colormap VIRIDIS and distinctive ColorOrder TAB10/VEGA10

5 dagar ago | 89 downloads |

Thumbnail

Answered
How to sort numbers in a char
str = 'Y([4.1689],u1+[9.0615],[0.024204])+G([0.2594],u1+[3.8532],[0.31232])+G([1.1277],u1+[2.9793],[0.3143])+D([1.2424],u1+[1.59...

5 dagar ago | 0

| accepted

Submitted


Round Dates and Times
Round dates/times to the selected unit (round/floor/ceiling).

6 dagar ago | 8 downloads |

Thumbnail

Submitted


Date Vector/Number to ISO 8601 Date String
Convert a Date Vector/Number to an ISO 8601 Date String. Tokens control the date/time notation.

6 dagar ago | 10 downloads |

Thumbnail

Submitted


ISO 8601 Date String to Serial Date Number
Convert an ISO 8601 Date String to Serial Date Numbers. Auto-detect or select the timestamp style.

6 dagar ago | 6 downloads |

Thumbnail

Answered
How to create matrix 10x10 with same diagonal vector and empry value
M = toeplitz([2,1,zeros(1,8)])

7 dagar ago | 0

Answered
sum of row in pattern
Data = [1,4,0.0000; 2,7,0.0000; 3,9,0.0000; 4,5,0.1760; 4,6,0.1580; 5,7,0.3060; ...

7 dagar ago | 0

Answered
How to identify partial string duplicates in a table
Actually the identical part at the start of the string is '*Endo', and this is easy to find: >> X = logical(cumprod(all(diff(Ta...

8 dagar ago | 0

Answered
Organize vector, extract indices
A = [2,4]; B = [2,70,8,29,98,100]; Out = setdiff(1:numel(B),A)

8 dagar ago | 0

| accepted

Submitted


Customizable Natural-Order Sort
Alphanumeric sort of a cell array of strings, with customizable numeric format.

8 dagar ago | 47 downloads |

Thumbnail

Submitted


Natural-Order Filename Sort
Alphanumeric sort of filenames or filepaths, with customizable numeric format.

8 dagar ago | 358 downloads |

Thumbnail

Submitted


Natural-Order Row Sort
Alphanumeric row sort of a cell array of strings, with customizable numeric format.

8 dagar ago | 24 downloads |

Thumbnail

Answered
How to pass multiple arguments to a function stored in a vector?
The solution is to use a cell array for the input values, for example: C = cell(1,N); for k = 1:N % do NOT use i str = in...

8 dagar ago | 0

| accepted

Answered
Multiple plots in a for loop combined with variable cell arrays
By default every plot call deletes the contents of the figure before plotting the new data. So if you want to call plot multiple...

8 dagar ago | 0

| accepted

Answered
How can I create a new cell array from a existing array that only holds specific values?
You are defining a scalar cell on the RHS and putting it inside another cell array on the LHS, giving you nested cell arrays. Bu...

9 dagar ago | 0

| accepted

Answered
removing specifics elements from a matrix
acomb_w = [... 1 1 2 1 3 1 4 1 1 2 2 2 3 2 4 2 ...

9 dagar ago | 2

| accepted

Submitted


Maximally Distinct Color Generator
Generate maximally distinct colors in an RGB colormap.

10 dagar ago | 52 downloads |

Thumbnail

Answered
Logical comparison (>= to be specific) between each element (row) of a column vector, and all elements inside each row of a matrix having same number or rows, respectively
A = [1,2,3,4,5,6;7,8,9,10,11,12;13,14,15,16,17,18] B = [4;10;16] C = A>=B % requires >=R2016b C = bsxfun(@ge,A,B) % for earli...

10 dagar ago | 0

| accepted

Answered
atan2 not consisent
The reason is a little arcane: negative zero: https://en.wikipedia.org/wiki/Signed_zero The other answers and comments are wro...

10 dagar ago | 4

| accepted

Answered
How can i divide data into equal parts?
V = 1:100; C = mat2cell(V,1,[25,25,25,25]); C{1} % C{2}, etc.

11 dagar ago | 0

| accepted

Answered
How to call array with string
Fieldnames are not indices (or atleast, not in the way that you are trying to use them). And writing the app variable, loaded va...

11 dagar ago | 0

| accepted

Answered
Help regarding the Munsell and Kubelka-Munk Toolbox - RGB to Munsell conversion
The function sRGBtoMunsell calls the function xyYtoMunsell which calls the function IsWithinMacAdamLimits . The author wrote som...

12 dagar ago | 0

| accepted

Load more