回答済み
Moving files to new folder based on timestamp
Return the dir() of the files matching desired pattern and then convert the .date field to datetime. You can then use whatever ...

約7年 前 | 0

| 採用済み

回答済み
How can I display greek letters as boxplot labels?
Axes labels aren't text objects; you didn't diagnose the result of your probe: ... h = findobj(gca, 'type', 'text'); >> h h ...

約7年 前 | 2

回答済み
Gettind the indexes of table array with time and data according to datetime vector with time. Or how to syncronize datetime vector with table array
OK, with the code to see what it was you were really trying to do it's easier... First, there's an issue with your table that m...

約7年 前 | 0

| 採用済み

回答済み
How to revert graphs.
Basically, don't erase/delete anything until you're sure you're done with it. Save the line handle(s) to the lines when drawn; ...

約7年 前 | 1

回答済み
Matrix Dimensions must agree
The + operator only works for the class string catenation, not character strings. path_new="C001H001S00040" + i3 + ".tif"; ...

約7年 前 | 0

回答済み
psd estimation using welch's method
To compute via Welch's overlapping estimator, yes. Of course, you can compute PSD from base product directly with FFT() and ch...

約7年 前 | 1

| 採用済み

回答済み
Correlation between two non-linear vectors
Can I trust the function corrcoef?" Well, you can trust it to have computed what it says it computes which is the estimate of ...

約7年 前 | 0

回答済み
Trasform cell arrays vector into a double vector
All the gyrations with tables are apparently totally unnecessary and just added complexity... pluto_test=cell2mat(c2); pippo_t...

約7年 前 | 0

回答済み
Displaying special characters in dialog box
Dialogs don't have 'Interpreter' property, unfortunately, and they're not full-blown text objects underneath. Have to hardcode ...

約7年 前 | 0

回答済み
Importing Histogram bin width & bin frequency data without access to underlying raw data
Just read the data in as is; no need for Excel. I'd use bin midpoints altho will make little difference on fitting is probably ...

約7年 前 | 0

回答済み
Why fileID value is -1 in fopen function despite that it seems to have opened and read the file content successfully?
Also, too: Your logic doesn't immediately continue to the next file in the for...end loop after the error message--it just does...

約7年 前 | 0

回答済み
Wrong axis value in correlation plot
It's a confusing labeling problem -- the ticks aren't actually the variables on the plot for the histogram but for the scatter p...

約7年 前 | 1

回答済み
Occurence with 2 variables
HD=[HsW;DirW].'; % combine data for convenience Pattern=[HD(1:2,:)]; % the look...

約7年 前 | 1

| 採用済み

回答済み
how can i display only two decimals in uitable MATLAB?
Don't have that much flexibility with numeric formattting in the object, sorry. uitable uses the same setting as the command wi...

約7年 前 | 1

回答済み
A clever way to have dynamic output variables from a function??
Do NOT write code with metadata in variable names nor sequentially-numbered or lettered ones for starters...use an array. Then ...

約7年 前 | 1

回答済み
I want to my contour plot to look like the one from mathematica?
One of the examples from ML doc (peaks function) with x/y limits expanded to more or less mimic the kind of figure you have resu...

約7年 前 | 0

回答済み
Skipping 1st two calculations of a loop
for i=1:n for j=1:k C(i,j)= a(i)+b(j)+c(j) end end C(1,1:2)=[C11 C12]; % fixup special cases

約7年 前 | 0

| 採用済み

回答済み
Inserting number where vector changes from positive to negative
On the chance the crystal ball foresaw the answer to the above questions, try the following (or perturbations thereof)... x = [...

約7年 前 | 0

回答済み
Read only numerical values from mixed text file
Something like fmt1='NODes %n ELEments %n'; % info line nodes, elements in file fmt2=repmat('%f',1,4); fmt3=repmat('...

約7年 前 | 0

回答済み
Index on a matrix
xlo=0.000020; xhi=0.000025; d=dir('*.csv'); nFiles=numel(d); % how many are there? vt=zeros(nF...

約7年 前 | 0

回答済み
How to copy first column, and replace other columns with this first column values in same array in MATLAB? (array size can vary)
"copy what ever is in the first column (first column will have each row with different values and have n number of rows in it), ...

約7年 前 | 0

| 採用済み

回答済み
Multivariate regression betas stock returns
OK, just add as new Answer since preceding getting rather long...try this out; seems to work ok here on the sample dataset. NB:...

約7年 前 | 0

| 採用済み

回答済み
Print OCR results to text file
AHA! The one about "Expected one output from a curly brace or dot indexing expression, but there were 544 results." is helpful!...

約7年 前 | 0

回答済み
Multivariate regression betas stock returns
Just saw something overlooked last night... if size(vars,1) > 15 I think there's your problem -- you only calculate a re...

約7年 前 | 0

回答済み
How to Convert this time series data to YYYY-MM-DD HH:MM format
dt=datetime(Year,1,day,fix(time/100),mod(time,100),0); ADDENDUM: Using Star's array... A = [2019 137 1650; 2019 144 1740]; ...

約7年 前 | 0

回答済み
Print OCR results to text file
To write cell output with fprintf, you must dereference the cell content "use the curlies, Luke!". fprintf(fileID, '%s\r\n', te...

約7年 前 | 0

回答済み
how to create a normal distribution matrix?
NRV=normrnd(0,1,120*320,1); NRV=reshape(interp1([min(NRV);max(NRV)],[0;255],NRV),120,[]);

約7年 前 | 1

回答済み
Transfer formula and images from Excel to Matlab
You'd have to use COM to drive Excel to read formulae from cells or, alternatively, for a couple cases where needed to get such ...

約7年 前 | 0

回答済み
Set individual bar color, with specifying y axis range and show tick as well.
To set individual bar colors-- hBar=bar(tensile); % do the bar plot, save the handle hBar.FaceColor='flat'; ...

約7年 前 | 0

回答済み
How to supplement the matrix?
Adding to Stephen's answer Matlab syntax, the crystal ball says for i = 1:length(d)-1 % Error 1100 1099 if g(i)-50>= g(i...

約7年 前 | 0

さらに読み込む