回答済み
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年 前 | 0

| 採用済み

回答済み
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年 前 | 1

| 採用済み

回答済み
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年 前 | 2

| 採用済み

回答済み
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年 前 | 0

回答済み
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年 前 | 0

回答済み
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年 前 | 0

回答済み
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年 前 | 0

| 採用済み

回答済み
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年 前 | 2

回答済み
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年 前 | 1

| 採用済み

回答済み
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年 前 | 3

| 採用済み

回答済み
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年 前 | 0

| 採用済み

回答済み
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年 前 | 0

| 採用済み

回答済み
search multiple results for multiple conditions
doc pdist

約9年 前 | 0

回答済み
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年 前 | 2

回答済み
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年 前 | 0

回答済み
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年 前 | 1

| 採用済み

回答済み
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年 前 | 0

| 採用済み

回答済み
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年 前 | 0

回答済み
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年 前 | 0

| 採用済み

回答済み
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年 前 | 0

| 採用済み

回答済み
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年 前 | 0

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

約9年 前 | 0

回答済み
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年 前 | 0

| 採用済み

回答済み
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年 前 | 0

回答済み
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年 前 | 0

回答済み
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年 前 | 0

| 採用済み

回答済み
How to put only the day number on the X-axis while 24 values being plotted for each day?
Did you convert to datetime as I suggested in the earlier thread? If so, if you have late release (R2016b?) use the ruler forma...

約9年 前 | 0

回答済み
How to find intersection between two outputs?
What you're missing is that |*intersect*| is a comparison of the elements in the two arrays for exact equality of the members th...

約9年 前 | 1

| 採用済み

回答済み
How to avoid double counted hours for a given day
Convert your time data columns to _datetime_ values with |*datetime*|. It has ability to use a given time zone and output UTC. ...

約9年 前 | 0

さらに読み込む