Community Profile

photo

Stephen23


2014 以来アクティブ

Suspensa Vix Via Fit

Statistics

All
  • Most Accepted 2021
  • 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 5
  • Revival Level 2
  • Knowledgeable Level 5

バッジを表示

Content Feed

表示方法

回答済み
How to find out number of Fridays in a month?
Here is a really simple approach using CALENDAR(): M = calendar(2022,8); N = nnz(M(:,6)) Otherwise you could try using a DATE...

約13時間 前 | 0

回答済み
How do I copy some files to another folder?
"I guess the filename cannot be a string..." The filenames certainly can be string. The problem is the you are using command s...

約16時間 前 | 0

回答済み
How to delete a duplicate cells?
F = {[3,8;6,4],[6,9;7,3],[3,8;6,4],[6,9;7,3]}; F{:} for ii = numel(F):-1:2 for jj = 1:ii-1 if isequal(F{ii},F{jj...

約20時間 前 | 1

| 採用済み

回答済み
Split string in two strings
str = ["van Donk","Gerritsen","kooijman","Verliefde","Floré","Pengel","aan de Wiel","van der Hoeven","Hop","Boer","van Ewijk"] ...

1日 前 | 1

回答済み
Split column by text and numbers
str = ["54","33","104A"]; tkn = regexp(str,'^(\d+)\s*(\w*)$','tokens','once'); tkn = vertcat(tkn{:}); num = tkn(:,1) let = t...

1日 前 | 0

| 採用済み

回答済み
Store cell arrays composed of datetimes and numbers
Your loop works for me (with suitable preallocation): store = cell(5,2); % preallocate! for i = 1:5 dt = datetime(2022,ra...

1日 前 | 0

| 採用済み

回答済み
Unable to use inner join function
Because the two tables use different names for the key variable, you will have to help INNERJOIN by telling it the names of the ...

2日 前 | 0

| 採用済み

回答済み
how to write numbers with 10^ format in matlab?
str = strrep(sprintf('CC = %.1e',123456),'e','x10^') str = regexprep(sprintf('CC = %.1e',123456),'e(\D)0*(\d+)$','x10^$1$2')

2日 前 | 0

| 採用済み

回答済み
How would I convert years to date time?
N = 2022.1765918316; D = datetime(fix(N),1,1) + calyears([0;1]); T = D(1) + diff(D)*mod(N,1)

2日 前 | 0

| 採用済み

回答済み
how to extract some data from this particular structure?
"Any ideas?" Two comma-separated lists will do it. For example, where C is your cell array: S = [C{:}]; % create non-scalar st...

2日 前 | 0

回答済み
How removing elements from vector?
c = [1,2,3] z = [10,9,1,4,11,2,6,3] x = setdiff(z,c,'stable') or z(ismember(z,c)) = []

2日 前 | 0

| 採用済み

回答済み
Create a cell with row vectors as elements
F = @(varargin) vertcat(varargin{:}); C = arrayfun(F, A,B,C,D,E,F,G,H,I,J, 'uni',0);

3日 前 | 0

| 採用済み

回答済み
How do I insert a 1x1 cell array consisting of one vector into a table?
So far no one adressed your questions, nor explained the cause of your problem: the problem comes from the fact that you are usi...

9日 前 | 0

| 採用済み

回答済み
How to concatenate multiple .mat files and generate a 3D matrix?
"I have 100 files ..." which are probably named using some sequential numbering, so you will need to take that into account in ...

9日 前 | 0

| 採用済み

回答済み
Can you parameterize table lookup, i.e. t1.A(i) = t2.A(t2.B==t1.B(i)), so it does not require a loop?
If you stored the IDs as basic numeric arrays, rather than inefficiently as complex cell arrays containing lots of numeric scala...

10日 前 | 0

| 採用済み

回答済み
Using structures with Functions
Rather than defining a scalar structure containing arrays, it looks like you should be using a non-scalar structure: https://ww...

11日 前 | 2

| 採用済み

回答済み
Sort files in folder based on type
mkdir('ecfFiles') mkdir('txtFiles') movefile('*.ecf','ecfFiles') movefile('*.txt','txtFiles')

11日 前 | 0

回答済み
How to interpolation between matrices
Assuming that you want to interpolate between the corresponding elements of those 4x4 matrices, then you could do something like...

13日 前 | 0

| 採用済み

回答済み
How to map one array elements to another array elements?
Method one: indexing: num = [1,2,2,4,3,1]; val = [40,30,20,10]; out = val(num) Method two: interpolation: out = interp1(val...

13日 前 | 0

| 採用済み

回答済み
Choosing a function handle from a group of function handles
s = sprintf('f_%d_%d',m,n); f = str2func(s);

14日 前 | 0

| 採用済み

回答済み
Using contains() with dir() to search files in folder
Replace this comma-separated list files_in_folder.name with this cell array of filenames: {files_in_folder.name} https://www...

14日 前 | 1

回答済み
Logical array indexing unexpected behaviour.
"I have been unable to find anything about this behavior so please enlighten me" https://www.mathworks.com/help/matlab/matlab_p...

15日 前 | 0

回答済み
How to use Greek Letters in equation
The MATLAB approach: syms omega mu epsilon sigma k1 = omega .* sqrt((mu .* epsilon)/(2)) .* sqrt((1 + ((sigma)/(epsilon .* ome...

17日 前 | 0

| 採用済み

回答済み
How can I change a matrix name in workspace during my script ?
The problem is caused by your data design, which forces meta-data into variable names. Forcing meta-data into variable names mak...

21日 前 | 1

| 採用済み

回答済み
n E Z => sin(n*pi) = -1 ?
n = sym(100000000000000000000000000000) sin(n*pi)

22日 前 | 1

回答済み
Sort values in a cell array
A = [90,45,38,51]; B = [8,1,8,3]; [~,~,X] = unique(B); C = accumarray(X,A(:),[],@(v){v}) Checking the content of C: C{:}

22日 前 | 1

| 採用済み

回答済み
How to get coordinates of largest element in an array?
format long G M = [-2.37702213697260e+17,-2.33711662054550e+19,-615937600693473,-4.41919914907522e+19,-3.50291921355524e+20;-2....

22日 前 | 0

回答済み
Warnings in Command Window
"I'm not if that's causing the problem." The problem is that you have added many subfolders to the MATLAB search path, that sho...

22日 前 | 2

| 採用済み

回答済み
How do I sort all the columns of a table based on the first column?
Where T is your table: T = sortrows(T,'Date')

22日 前 | 1

| 採用済み

回答済み
Reading numbers from String
Another approach: str = {'SRm40_','SRp5_'}; vec = str2double(regexprep(str,{'[A-Z_]+','m','p'},{'','-','+'}))

23日 前 | 0

| 採用済み

もっと読み込む