回答済み
Read files in a folder with dates on them
The actual solution is to parse the filenames that you gave. Lets create some fake files with fake data: X=1;save Profile_1990_...

2年以上 前 | 1

| 採用済み

回答済み
How to select multiple contain conditions in a table?
The MATLAB approach: T = readtable('LOOP Events.xlsx','Range','D:K'); T = rmmissing(T) % remove empty rows X = matches(T.Oper...

2年以上 前 | 0

| 採用済み

回答済み
matfile function for multidimentional arrays
Why not simply PERMUTE the dimensions to A to suit? JJ = nan(2,11,21,111,111,3); save test.mat JJ -v7.3 clearvars MF = matfi...

2年以上 前 | 0

| 採用済み

回答済み
want to change what data I am plotting by text name.
Do NOT load directly into the workspace, always LOAD into an output variable (which is a scalar structure). Then simply use thi...

2年以上 前 | 0

| 採用済み

回答済み
Read number from a string from multiple files
"is there a way to modify my code such that it counts how many eta files there are in the output folder without having to manual...

2年以上 前 | 0

| 採用済み

回答済み
How to change datetime format?
You can specify different formats for the input and display: DT = datetime('02-Jul-2023','InputFormat','dd-MMM-yyyy', 'Format',...

2年以上 前 | 2

| 採用済み

回答済み
Extract column from text file
Fake data (you would use FILEREAD): S = sprintf('%s\n','P1,R0,14:17:36.779,47,0.01421266,[-0.03077913; 0.3226232; -0.4286367],[...

2年以上 前 | 0

回答済み
saving files in a folder
save([vFolder,'\' 'Pzz'+f+'X'+zz.mat'],'cn','y','z'); % ^^^^^^^ invalid syntax Better: fnm = sp...

2年以上 前 | 0

| 採用済み

回答済み
How to convert cell (with 6x1 tables) into a multirow table?
If all of the tables in the cell array have compatible sizes and column/variable names, then all you need is: T = vertcat(my_ce...

2年以上 前 | 0

| 採用済み

回答済み
How to access column of double in struct array?
"...and turn them into matrix data" "Can you help me?" Download this: https://www.mathworks.com/matlabcentral/fileexchange/22...

2年以上 前 | 0

| 採用済み

回答済み
Dot notation and curly braces with TABLE
You can think of curly-brace indexing into a table as being something a bit like parenthesis indexing into a numeric array: V =...

2年以上 前 | 0

| 採用済み

回答済み
How to store multiple outputs of a structure into a character array using logical indexing.
https://www.mathworks.com/help/matlab/matlab_prog/comma-separated-lists.html https://www.mathworks.com/matlabcentral/answers/16...

2年以上 前 | 1

| 採用済み

回答済み
Dynamically specifying table columns in a loop - with a row number...
"Any tips?" Read the MATLAB documentation: https://www.mathworks.com/help/matlab/matlab_prog/access-data-in-a-table.html From...

2年以上 前 | 0

| 採用済み

回答済み
array in array struct
"i want element (1:10) of each fields.." Your structure only has one field, named "F". You can iterate over the 73 elements ...

3年弱 前 | 1

回答済み
How to convert time in microseconds (queryperformancecounter(qpc)),import from an excel file, to time (hh:mm:ss)?
T = readtable('Project_prova Data Export.xlsx') tx = strcat(T.RecordingDate,'T',T.RecordingStartTime); DT = datetime(tx, "Inpu...

3年弱 前 | 1

| 採用済み

回答済み
Extract data from struct array
"Since data(1:10).sys.sys1.sub1.dataPoint1 does not work.." First lets generate your sample structure: dt = 1/1000; T = 5; t...

3年弱 前 | 0

回答済み
How to separate four columns on the basis of 5th column
format short G S = load('Dataset.mat'); D = S.Dataset Method one: ARRAYFUN: V = D(:,5); U = unique(V) C = arrayfun(@(x)D(x...

3年弱 前 | 0

回答済み
Struggling with multiple csv files
"I don't have an idea how to correct these errors. Does anyone have an idea?" The error message already tells you how: "Check t...

3年弱 前 | 0

| 採用済み

回答済み
How to create multidimensional array with specified row values
m = 6; n = 7; A = cumsum(ones(m,n),1) A = repmat(1:m,n,1).' A = (1:m).' * ones(1,n) A = min(1:n,(1:m).') A = repmat((1:m)....

3年弱 前 | 1

| 採用済み

回答済み
Compile multiple matrices into one without listing them all out
"how can I do the above final line without typing all numbers up to 60?" The general approach is to use a comma-separated list:...

3年弱 前 | 1

回答済み
using if statement to sort data by flags
"I need some code that will go through each pair of rows (e.g. row 1 and 2 then row 3 and 4 etc.) and check if they both have no...

3年弱 前 | 0

回答済み
How do I fix Invalid use of operator in the Code
T = readtable('LP.xlsx') T.DT = datetime(T.Date, 'ConvertFrom','excel') + days(T.Time)

3年弱 前 | 0

| 採用済み

回答済み
Most efficient way to put vector on the off-diagonal of the blocks of a block matrix
v = [1,2,3,4,5,6,7,8,9,8,7,6]; u = [9,8,7,6,5,4,3,2,1,2,3,4]; L = sqrt(numel(v)); vM = reshape(v,fix(L),[]); uM = reshape(u,...

3年弱 前 | 1

| 採用済み

回答済み
natsortfiles is not working for .png files
This page turns up relatively high on some Google searches, so I might as well make some corrections: "S is a structure. First...

3年弱 前 | 1

回答済み
Deleting elements of an array with consecutively occurring NaN values
A = [NaN,NaN,NaN,NaN,43,NaN,NaN,NaN,45,NaN,NaN,10,22,NaN,NaN,NaN,NaN,36,33,28,21,NaN,20,98,NaN,17,NaN,NaN,NaN,NaN,NaN,2,3,NaN,5,...

3年弱 前 | 2

回答済み
Bringing plots to the "front" to make them more visible?
"s there a way to change the ordering so that it sits on top of the other data series like layers in photoshop?" Of course, use...

3年弱 前 | 1

回答済み
Need guidance: Extracting variable and values from log file
str = fileread('Simulation_Results.txt') tkn = regexp(str,'(\d+):\s*(\d\S+)\s*\n[^\n]+:\s*(\d+)','tokens'); mat = str2double(v...

3年弱 前 | 0

| 採用済み

回答済み
Replacing sequences in matrix
A = [4,5,6,7,8,9,10,11,12,13; 104,105,106,107,108,109,110,111,112,113; 204,205,206,207,208,209,210,211,212,213; 304,305,306,307,...

3年弱 前 | 0

| 採用済み

回答済み
the conversion from data string to serial number
Yes, that is the wrong date.... it is also the wrong data type: why are you using deprecated serial date numbers? The DATENUM d...

3年弱 前 | 0

| 採用済み

回答済み
Conversion from d:h:m:s:ms to seconds
"negating the days." I guess you really mean to ignore the days. format long G C = {'104d:11h:59m:38.934815s';'104d:11h:59m:3...

3年弱 前 | 0

| 採用済み

さらに読み込む