回答済み
Append and add lines in text/dat file
"..., and the easiest way to do this would be (if appending itself is impossible) to rewrite the line in its entirety by simply ...

3年以上 前 | 0

| 採用済み

回答済み
How do I create a beeswarm plot and boxplot together?
The basic starting point isn't difficult; some tedium in setting all the conditional fixups of symbols, colors, etc, etc., ... b...

3年以上 前 | 0

回答済み
Multiply only certain columns in a matrix with a constant
M(:,end-5:end)=c*M(:,end-5:end);

3年以上 前 | 1

回答済み
Extract the Transport names from the list of adapter names
I was going after @chrisw23's mode as I have a terrible time with regexp -- I can find both the start and the end of the string,...

3年以上 前 | 0

| 採用済み

回答済み
converting .txt file to .csv file with mixed delimiter
Using the import tool manually, just go to the section on 'delimiters' and check the comma as well as the identified blank -- it...

3年以上 前 | 1

回答済み
Problem concatenating two strings
I hate struct, but if I understand the Q?, then try something like -- d=dir(fullfile(pwd,'test-*.txt')); fn=strcat('loc_',extr...

3年以上 前 | 0

| 採用済み

回答済み
bar graph with 3 axes
p=10*abs(randn(7,6)); % some dummy data -- 7 periods by 6 systems d=[72 142 225 275 975 2475 5975]; % the retur...

3年以上 前 | 0

回答済み
converting .txt file to .csv file with mixed delimiter
filename='/Users/gulfcarbon2/Downloads/Modis Data/7da2190bbf_NSF_Rapid_HPLC_2018_AC.txt'; data=readlines(filename); data=strre...

3年以上 前 | 0

回答済み
Convert vector to matrix
Given the above problems regarding the number of elements in the vector vis a vis the number of channels (and it can't be there'...

3年以上 前 | 0

| 採用済み

回答済み
Verify if a given argument is a probability distribution
Interesting puzzle...I dunno, but let's see what we can find... The class is the fully-qualified distribution name; in your abo...

3年以上 前 | 0

回答済み
Select positive samples in a matrice
One more time, yet again, it's one of the most fundamental of MATLAB idioms/syntaxes that makes MATALB what it is -- <MatrixInde...

4年弱 前 | 0

| 採用済み

回答済み
Hide/remove bubbles of size = 0 in polarbubblechart
tbl.countA(tbl.CountA==0)=nan; tbl.countB(tbl.CountB==0)=nan; ... tbl.countG(tbl.CountG==0)=nan; polarbubblechart(tbl,{'a','...

4年弱 前 | 0

| 採用済み

回答済み
How to create 3D arrray from text file?
OK, had a little time -- XZ=zeros(50,50,50); % preallocate the output array fmt=['%fnm' re...

4年弱 前 | 1

回答済み
Extract annualized returns from daily stock returns timetable
As per retime first syntax and its example, ttAnnRet=retime(MCStest,'yearly',@geomean);

4年弱 前 | 0

回答済み
How to index txt file
datalength = length(data); datalength2 = datalength - 1 ; A = time(1:datalength2,1); % time data excluding last point B = t...

4年弱 前 | 0

回答済み
How to know the slope and intercept of a straight line in a log log plot and how to connect the data in log log scale by a straight line?
If one is not concerned about stastical estimation but simply the coefficients, then just use b=polyfit(log10(x),log10(y),1); ...

4年弱 前 | 0

回答済み
reading data in loop
But they are .. just that cy_sum(Q) is the single element of the array on each pass and the mean of a single number is the numbe...

4年弱 前 | 0

| 採用済み

回答済み
Create time matrix with serial date number and sample rate
Well, what is "tick rate"? If you have a sample rate and number of points, then the sample times are just t=[0:1/Fs:(N-1)/FS...

4年弱 前 | 0

| 採用済み

回答済み
Plotting hourly data for every month for 'x' number of years
tData=readtable('test.xlsx'); tData=addvars(tData,year(tData.Date_Time),month(tData.Date_Time),'Before','WaterLevel','NewVariab...

4年弱 前 | 1

| 採用済み

回答済み
How to split the numerical data using discretize Function
discretize uses bin edges, not bin centers so your seven values define six bins, not seven, annoying as that is as compared to t...

4年弱 前 | 1

| 採用済み

回答済み
How do you load an external datafile using uiopen and then rename workspace variable without copying it?
If you want control over the input process beyond the default action, take control... [file,path]=uigetfile('[path to data...]/...

4年弱 前 | 0

回答済み
How can I filter out specific lines of text with textscan?
Piece o' cake -- but use more recent tools than textscan will simplify coding somewhat... filename = 'filename'; termsRemove=[...

4年弱 前 | 0

| 採用済み

回答済み
How can I easily extract element from a big matrix?
Yeah, I'd convert to timetable and reorganize -- something like this Time=datetime(2022,1,1,[0:365*24-1].',0,0); % crea...

4年弱 前 | 1

| 採用済み

回答済み
Find the days whose maximum temperature does not exceed 0 ° C
Just select with logical indexing -- you didn't give name of the temp variable so spelling may be different, salt to suit... tZ...

4年弱 前 | 0

| 採用済み

回答済み
Thickness of Tick mark
There is no such property for the axes ticks to change individual tick marks -- some possible workarounds (not tried any of thes...

4年弱 前 | 0

回答済み
find a cell that corresponds to a range of values
R=0:0.25:1;R=R.'; z=[0.98;0.74;0.34;0.21;0.10].'; >> [~,~,idx]=histcounts(z,R) idx = 4 3 2 1 ...

4年弱 前 | 0

回答済み
Replace values in a matrice
Seems you're going over and over the same plowed ground here...use logical addressing. isR=isfinite(D); R(isR)=RMC; or isD=i...

4年弱 前 | 0

| 採用済み

回答済み
Couldn't exploit axis exponent for log scaled axis.
You'll have to fake it -- as @Voss notes, the effect you observe (none) is by design -- whether was right choice or not is diffe...

4年弱 前 | 0

回答済み
Create an array of numbers
[R0,ixR0]=min(distance_matrix(distance_matrix ~= 0)); x=(1:numel(distance_matrix))-ixR0;

4年弱 前 | 0

回答済み
How can one do this calculation?
Assuming you put it into a table as @Steven Lord suggested, then tHi2=maxk(tData.Temperatures,2,2); tHi2=tHi2(:,2); % get t...

4年弱 前 | 0

| 採用済み

さらに読み込む