Community Profile

photo

dpb


4.117 total contributions since 2012

Contact

dpb's Badges

  • Master
  • Thankful Level 2
  • 36 Month Streak
  • Revival Level 1
  • Knowledgeable Level 4
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
How do I scan in data that is flowing on each other horizontally, the values running into each other can't be recognized and separated correctly.
Use opts=detectImportOptions(readfile); to create a base import options object for fixed-width text and then fix up the Varia...

ongeveer 10 uur ago | 0

Answered
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...

ongeveer 18 uur ago | 0

Answered
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; ...

3 dagen ago | 1

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

5 dagen ago | 0

Answered
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...

5 dagen ago | 1

| accepted

Answered
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 ...

5 dagen ago | 0

Answered
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...

6 dagen ago | 0

Answered
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 ...

6 dagen ago | 0

Answered
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 ...

6 dagen ago | 0

Answered
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...

6 dagen ago | 0

Answered
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...

6 dagen ago | 1

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

6 dagen ago | 0

Answered
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 dagen ago | 0

Answered
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 ...

8 dagen ago | 1

Answered
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...

8 dagen ago | 0

Answered
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

10 dagen ago | 0

| accepted

Answered
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 = [...

10 dagen ago | 0

Answered
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('...

11 dagen ago | 0

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

11 dagen ago | 0

Answered
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), ...

11 dagen ago | 0

| accepted

Answered
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:...

12 dagen ago | 0

| accepted

Answered
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!...

12 dagen ago | 0

Answered
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...

13 dagen ago | 0

Answered
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]; ...

13 dagen ago | 0

Answered
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...

13 dagen ago | 0

Answered
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,[]);

14 dagen ago | 0

Answered
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 ...

14 dagen ago | 0

Answered
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'; ...

14 dagen ago | 0

Answered
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...

14 dagen ago | 0

Answered
How can I merge a numeric matrix (1 column) to an existing numeric matrix?
Presuming the B vector already exists to match the right size, simply knowing the row number is sufficient... B(sc:end,2)=A;

15 dagen ago | 0

| accepted

Load more