
Stephen23
Suspensa Vix Via Fit
Statistics
RANK
5
of 262.603
REPUTATION
30.923
CONTRIBUTIONS
4 Questions
8.094 Answers
ANSWER ACCEPTANCE
75.0%
VOTES RECEIVED
5.049
RANK
119 of 17.976
REPUTATION
9.192
AVERAGE RATING
4.90
CONTRIBUTIONS
22 Files
DOWNLOADS
825
ALL TIME DOWNLOADS
71490
RANK
of 113.614
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Content Feed
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)
alrededor de 12 horas ago | 0
| accepted
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...
alrededor de 12 horas ago | 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)) = []
alrededor de 12 horas ago | 0
| accepted
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);
1 día ago | 0
| accepted
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...
7 días ago | 0
| accepted
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 ...
7 días ago | 0
| accepted
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...
8 días ago | 0
| accepted
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...
9 días ago | 2
| accepted
Sort files in folder based on type
mkdir('ecfFiles') mkdir('txtFiles') movefile('*.ecf','ecfFiles') movefile('*.txt','txtFiles')
9 días ago | 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...
11 días ago | 0
| accepted
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...
12 días ago | 0
| accepted
Choosing a function handle from a group of function handles
s = sprintf('f_%d_%d',m,n); f = str2func(s);
12 días ago | 0
| accepted
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...
12 días ago | 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...
13 días ago | 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...
15 días ago | 0
| accepted
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...
19 días ago | 1
| accepted
n E Z => sin(n*pi) = -1 ?
n = sym(100000000000000000000000000000) sin(n*pi)
20 días ago | 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{:}
20 días ago | 1
| accepted
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....
20 días ago | 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...
20 días ago | 2
| accepted
How do I sort all the columns of a table based on the first column?
Where T is your table: T = sortrows(T,'Date')
21 días ago | 1
| accepted
Reading numbers from String
Another approach: str = {'SRm40_','SRp5_'}; vec = str2double(regexprep(str,{'[A-Z_]+','m','p'},{'','-','+'}))
21 días ago | 0
| accepted
how to use an array as the input variable for function
You can use a comma-separated list: https://www.mathworks.com/help/matlab/matlab_prog/comma-separated-lists.html https://www.m...
21 días ago | 0
Organize matrix data into Bins using loop
"Is there a more efficient way to Bin this data???" Using inbuilt functions will be the most efficient approach, e.g. DISCRETIZ...
21 días ago | 0
| accepted
Read date from .CSV in native format of yy-mm-dd
As far as I can tell, it is not possible to specify the pivot year when calling READTABLE et al. But you can do it afterwards: ...
21 días ago | 0
How to reshape the three dimensional array in 2D matrix?
format compact A = cat(3,[8,2;3,9],[7,6;1,5]) M = reshape(permute(A,[2,1,3]),4,2)
22 días ago | 1
Compare two strings and count the same words
want = "Gruppe 1; Gruppe 2; Gruppe 3; Gruppe 3; ; Gruppe 6"; vgls = "Gruppe 1; Gruppe 2; Gruppe 3; Gruppe 4; Gruppe 5; Gruppe 6...
22 días ago | 0
| accepted
What character to type for [M,I] = min(A,[],'all',___)
In the MATLAB documentation underscore is used to indicate "any other valid options shown above, in this location". You do not ...
22 días ago | 1
| accepted
convert dates to specific format
My guess is that you have unfortunately stored each date as one numeric value, whose digits just happen to coincide with the dat...
22 días ago | 1
How to combine two one dimensional cell arrays into one two-dimensional cell array?
Where A and B are your cell arrays: C = cellfun(@horzcat,A,B,'uni',0)
23 días ago | 0
| accepted