Answered
Output argument 'ENA' is not assigned on some execution paths
1, You don't have an else clause so it is possible to select a set of inputs the combination of which will not satisfy any of t...

8 dagen ago | 0

Answered
How to ensure that MATLAB reads the first column as a column in a table?
rownames are table metadata; they are NOT a variable which is why the column variable heading doesn't show up for them -- the ta...

9 dagen ago | 0

Answered
dividing a distance double by a duration time to get rate
A datenum is a double; you must mean a datetime -- subtracting them does create a duration type/class, yes. There are some wart...

10 dagen ago | 0

| accepted

Answered
How to detect and manage occurrencies in a large .csv file?
Start perhaps with something like >> tAst=readtable('table.csv'); tAst.S_C=categorical(tAst.S_C); tAst.Sol_inters=categorical...

10 dagen ago | 0

| accepted

Answered
How to map one array elements to another array elements?
>> awardCoef=[-10,50]; >> conc=polyval(awardCoef,feederNum) conc = 40 30 30 10 20 40 >> More genericall...

10 dagen ago | 0

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

11 dagen ago | 0

| accepted

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

11 dagen ago | 0

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

11 dagen ago | 1

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

12 dagen ago | 0

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

12 dagen ago | 1

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

12 dagen ago | 0

| accepted

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

12 dagen ago | 0

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

13 dagen ago | 0

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

13 dagen ago | 0

| accepted

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

13 dagen ago | 0

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

14 dagen ago | 0

| accepted

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

14 dagen ago | 0

| accepted

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

16 dagen ago | 1

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

16 dagen ago | 0

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

18 dagen ago | 0

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

19 dagen ago | 0

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

19 dagen ago | 0

| accepted

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

19 dagen ago | 0

| accepted

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

20 dagen ago | 1

| accepted

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

21 dagen ago | 0

| accepted

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

21 dagen ago | 0

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

21 dagen ago | 0

| accepted

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

21 dagen ago | 1

| accepted

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

21 dagen ago | 0

| accepted

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

22 dagen ago | 0

Load more