Answered
Averaging points within data set
I can't read the image to tell what the data file name is, but given the data are just a linear sequence so don't have to do any...

9 years ago | 1

Answered
Function or Process For Time Series Correction
Many ways to do this depending...if have the Signal Processing TB, there's |resample| in it using a polyphase filter or there's ...

9 years ago | 1

Answered
Identifying Missing data years in and retaining years with maximum value
As noted in the comment, I wondered about <http://www.mathworks.com/help/robotics/ref/timeseries.html <timeseries>> ability to h...

9 years ago | 0

| accepted

Answered
Calling max value of variable from another function
The _y_ in the function |example| has nothing to do with the _y_ from the |load y| command so the question is unclear as to why ...

9 years ago | 0

| accepted

Answered
Projecting quarterly dates using datetime variables
OH! Wait! That comment re: Peter reminds me of a trick he did show earlier that may fixup the problem-- |dateshift|. Let's see...

9 years ago | 0

| accepted

Answered
Values of selected array indices
V=A(sub2ind(size(A),ix(:,1),ix(:,2))); NB: I turned _i_ into _ix_. I also use _i_ in loop indices despite aliasing builti...

9 years ago | 1

| accepted

Answered
how can i skiping a line in fscanf
*ADDENDUM* Update to reflect result of long subsequent conversation...dpb % file opening preamble here... data=[]; w...

9 years ago | 2

| accepted

Answered
subplot log-scale set range
You can still use non-decade values for |ylim| even on log axes, by default the logic for data that spans a couple of decades wi...

9 years ago | 0

Answered
How to compute Spearman's rank correlation excluding specific values?
ix=(A>0) & (B>0); A=A(ix); B=B(ix); Do whatever with _A_, _B_; they will be returned as column vectors by the logical...

9 years ago | 0

Answered
How to delete row in matrix or cell in a for loop?
No, it is _not_ clear, sorry. Firstly, why are you converting perfectly good vectors to cell arrays? Second, use the Matla...

9 years ago | 0

Answered
How can I solve a problem with the wrong format of date
If you're going to use numeric variable to store the dates, then use them that way -- >> d=[200102 200103 200104 201303]; ...

9 years ago | 0

| accepted

Answered
combine two double cells into 1
That's a little towards the advanced-beginner side... :) >> C=cellfun(@(c1,c2) unique([c1 c2]),C1,C2,'uniform',0); >> C{...

9 years ago | 2

Answered
How to assign a column of CATEGORICAL array to TABLE
Note what the error says -- can't augment a table by colon addressing except by another table or cell array. So, make a table a...

9 years ago | 1

| accepted

Answered
getting rid of for loop in a function with long arrays
OK, once have some data to work with it's not too bad at all...it is virtually always really, really helpful to be able to have ...

9 years ago | 3

| accepted

Answered
How do I fix this code to copy text from a number of text files to a bunch of other text files?
for i = 1:length(files) disp(fid1) fidI = fopen(files(i).name,'r'); file_name = [sprintf('%1.0f',i) '.txt']; %...

9 years ago | 0

| accepted

Answered
How to separate daily historical data into groups based on month and day not year?
mde=grpstats(tbl.elev,day(tbl.date),@mode); where |tbl| is your table with fields |.date| and |.elev|. |date| is a |dat...

9 years ago | 0

| accepted

Answered
search multiple results for multiple conditions
doc pdist

9 years ago | 0

Answered
How to use an index of a vector as a value in another matrix?
>> x=[1 1 2 2 3] ; >> m= [1 3 ; 1 4 ; 2 3 ; 2 4]; >> m(any(ismember(m,find(diff(x))),2),:)=[] m = 1 3 >>

9 years ago | 2

Answered
Adding top x-axis using yyaxis for grouped bar graphs
Set |xlim| and |xtick| values the same on the upper axis as the bottom. This can be done automagically by using |linkaxes| I...

9 years ago | 0

Answered
Plotting specified date intervals
What I'm suggesting... dn=datetime(['25-July-2017 9:00 AM'; '25-July-2017 12:30 PM']); % start/stop times day 1 dn=[dn...

9 years ago | 1

| accepted

Answered
Renaming multilple .txt files
OK. To respond to the question raised... Well, that's the hard way...use d=dir('Z_X12_ABC*.txt'); % return all files ma...

9 years ago | 0

| accepted

Answered
Cumtrapz with cell arrays in a double loop
Well, I've no idea what you're really trying to do, either, but setting a breakpoint at the line containing |cumtrapz| we find t...

9 years ago | 0

Answered
each iteration but same result
for i = 1:1:N beta = angle_disp(i)*pi/180; A = [... 0 1 0 1 0 0 0 0 0 0 1 0 1 0 0 0 1 0 0 -Py Px 0...

9 years ago | 0

| accepted

Answered
Vibration Analysis by using Fast Fourier Transform
>> help fft fft Discrete Fourier transform. fft(X) is the discrete Fourier transform (DFT) of vector X. For matri...

9 years ago | 0

| accepted

Answered
How can I expoort data from matlab to R and not lose format when using read_csv command in R?
That's an |R| syntax question, not Matlab and it's been so long since used it I don't recall much at all about it. Are you sure...

9 years ago | 0

Answered
How add multi line title to figure (not to plot)?
Unsupported feature, sorry. Find another task...or change assignor's expectations. :)

9 years ago | 0

Answered
Plotting from a for loop
td1=zeros(0:1:5); for t=0:1:5; ... pt=PartialTrace(rhoout,[3,4,5,6],[2,2,2,2,2,2]); td1=(pt-rhoENout)^2; ...

9 years ago | 0

| accepted

Answered
FSEEK error while running Matlab function
The error says the file handle is invalid -- ... fid=fopen(filename,'r'); fseek(fid, 12, 'bof'); % skip the 12-byte H...

9 years ago | 0

Answered
How to convert many .mat file into many tab separated .txt file
Use the |*dir*| solution at the <http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F <FAQ>> page to sequen...

9 years ago | 0

Answered
How do you troubleshoot error 'Out of memory. The likely cause is an infinite recursion within the program.'
Add the comments back in front of the line from % EXAMPLES: ... to ... %% Create Figure Those lines were...

9 years ago | 0

| accepted

Load more