Respondida
Set one common Xaxis for a sublot with rows = 1 and columns = 2
I overlooked the labels in the original Q? body and thought was to have a combination axis itself of some sort based on title --...

más de 4 años hace | 0

| aceptada

Respondida
regstats The design matrix has more predictor variables than observations.
The problem is NOT that there are NaN or Inf in the data (although that could also be a cause since they're treated as missing v...

más de 4 años hace | 0

Respondida
how to plot using surf function?
osmotisk_data = readtable("tester_tabeller.xlsx"); x = osmotisk_data{:,3}; y = osmotisk_data{:,1}; z = osmotisk_data{:,2}...

más de 4 años hace | 0

Respondida
How do I change the tick label rotation on my colorbar?
They've hidden some of the ruler properties -- you have to use/access the underlying numeric ruler properties -- cb.Ruler.TickL...

más de 4 años hace | 2

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 1

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 1

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 1

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 0

Cargar más