Community Profile

photo

Stephen Cobeldick


Last seen: Today 2014 以来アクティブ

Suspensa Vix Via Fit

Statistics

All
  • 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

バッジを表示

Content Feed

表示方法

回答済み
How to create exportable table from outputs of function iterated using for loop?
If your function has four outputs then you need to call it with four outputs. This is explained in the introductory tutorials: ...

4日 前 | 0

| 採用済み

回答済み
How to reshape 3D matrix ?
A = randi(9,4,4,3) B = permute(reshape(permute(A,[2,1,3]),[2,8,3]),[3,1,2])

4日 前 | 0

| 採用済み

回答済み
Where can I download apiref.pdf
This PDF file: https://www.mathworks.com/help/pdf_doc/matlab/matlab_apiref.pdf is listed here: https://www.mathworks.com/help...

4日 前 | 0

| 採用済み

回答済み
Why is my loop not working?
Look closely at the variable a: a=0; for .. a=a+50; [b,a]=ellip(..[a 5000]..); .. end At the start of the fir...

4日 前 | 0

| 採用済み

回答済み
Merge a row to a single cell
C = {... '1' '2' ':' '5' '7' ':' '0' '0' '1' '2' ':' '5' '7' ':' '0' '0' '1' '2' ':' '5' '7' ':' '0' '0' '1'...

5日 前 | 0

| 採用済み

回答済み
The size of the indicated variable or array appears to be changing with each loop iteration. Commonly, this message appears because an array is growing by assignment or concat
h = 1; r = 0:h:20; z = 0:h:20; [rgrid,zgrid] = meshgrid(r,z); zgrid = flip(zgrid) Simpler, faster code: b2 = find(zgri...

6日 前 | 0

| 採用済み

送信済み


Numeric to Ordinal-String
Convert numeric values to a string array of integers with ordinal suffixes. Fully vectorized!

8日 前 | ダウンロード 5 件 |

Thumbnail

回答済み
What does this mean "No differences to display. The files are not identical, but the only differences are in end-of-line characters."
"Can anyone help me to understand the meaning? " When you look at those files then they are shown with lots of lines. You might...

9日 前 | 1

| 採用済み

回答済み
How to include 'end' in a varibable to extract a subset of the original vector ?
"... if i want to define range before the definictiion of the vector..." You could use an anonymous function: rng = @(v)v(1:en...

9日 前 | 2

| 採用済み

回答済み
Convert values in the cell to array using cell2mat
The robust approach: out = horzcat(output1{:})

9日 前 | 0

| 採用済み

回答済み
How to store matrices in a cell from a loop?
Rather than lots of separate variables, use a comma-separated list to store the function outputs: https://www.mathworks.com/hel...

10日 前 | 0

| 採用済み

回答済み
Function output produces double array while only a single value is expected
I would avoid all of those superfluous and inefficient type conversions and messing around with indexing into character arrays. ...

10日 前 | 1

| 採用済み

回答済み
Read set of .dat files in for loop
https://www.mathworks.com/help/matlab/import_export/process-a-sequence-of-files.html P = 'absolute or relative path to where th...

10日 前 | 0

| 採用済み

回答済み
How to count alternating ones and zeros in a matrix
v =[ 0 0 0 0 0 0; ... 1 1 0 1 1 0; ... 1 0 1 0 1 0; ... ...

10日 前 | 0

回答済み
Round the elements column of the matrix to the same digit than it is in the other column
S = 2; A = 32*rand(5,7)-13 round(A(:,5),S,'significant') % for comparison P = S-1-floor(log10(abs(A(:,5)))); B = round(A.*10...

10日 前 | 0

回答済み
how to combine datetime array with cell array for export?
T = table(A,B); writetable(T,...)

11日 前 | 1

| 採用済み

送信済み


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

11日 前 | ダウンロード 51 件 |

Thumbnail

送信済み


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

11日 前 | ダウンロード 351 件 |

Thumbnail

送信済み


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

11日 前 | ダウンロード 20 件 |

Thumbnail

回答済み
How to use "if statement" for different matrix?
The MATLAB approach is to use arrays and indexing, e.g. using one simple cell array: V = {[1,3,5;2,4,7];[1,2,5;2,4,6];[1,4,5;4,...

11日 前 | 0

回答済み
Create month array?
D = datetime(2021,1,1):calmonths(1):datetime(2021,12,31) D.Format = 'MMM'

12日 前 | 0

回答済み
substract row of an array by a vector
Where A is your array: X = [18,36,54]; A(X,1) = A(X,1) - 2; A(X,2) = A(X,2) + 2;

12日 前 | 1

| 採用済み

回答済み
Best solution to finding repeating characters on a line.
inp = {'asdfsdfsdfsasdfsdfsdfsasdfsdfsdfs';'asseefadfefaaadddaaadddasdfsdf';'asdfsdfsdfsasdfsdfsdfsasdfsdfsdfs';'asseefadfefaaad...

13日 前 | 0

| 採用済み

送信済み


Round to Electronic Component Values
Round numeric array values to the best matching IEC 60063 resistor values (E-Series).

13日 前 | ダウンロード 7 件 |

Thumbnail

回答済み
determining spaces between two strings in fprintf function
fprintf('%*s %*s\n',10,' G',5,' G');

13日 前 | 1

| 採用済み

回答済み
How can I iterate obtaining numbers?
You can use dynamic fieldnames: https://www.mathworks.com/help/matlab/matlab_prog/generate-field-names-from-variables.html for...

13日 前 | 0

回答済み
How to merger multiple .mat files consists of 2D matrix into 3D matrix
Using the files from your comment, and assuming that the filenames all use sufficient leading zeros: D = '.'; % absolute or rel...

15日 前 | 1

回答済み
How to store all outputs from this nested for loop
Vs = 0:9; % Variable 1 Vom = 0.1:0.1:1; % Variable 2 Vmu = 0.1:0.1:1; % Variable 3 Ns = numel(Vs); Nom = numel(Vom); Nmu = ...

16日 前 | 0

| 採用済み

回答済み
How to convert "cell array" to "character array"
C = {'A1','B1','C1'} D = vertcat(C{:}) or D = char(C)

18日 前 | 0

回答済み
how to extract a field from a nested structure, modify it, and write it back
As this information is missing in your question, I will assume that ALL is a scalar structure. fun = @(n)struct('dur',n, 'typ',...

19日 前 | 0

もっと読み込む