Answered
How can I use 'regstats' to make a multiple linear regression with more than three predictor variables?
You've asked for a full quadratic model in 5 (not 4) predictor variables. That's a total of 5 quadratic + 5 linear + 9 (4+3+2) ...

7 years ago | 1

| accepted

Answered
how to split up column vectors into separate vectors from data
Build a ThingNum tracking id variable for each and then use findgroups and splitapply to analyze by group however desired. The...

7 years ago | 1

Answered
Calculate area under graph between two points
Start with doc findpeaks the optional output peak widths function with proper WidthReference level should give you all the inf...

7 years ago | 0

Answered
Matrix with repetitions of a vector
A=repmat(M,6,4); is what you say literally, but I don't follow what you mean by "with repetitions of the vector A, different to...

7 years ago | 0

Answered
I get "index must be a positive integer or logical. " Error, please help
"MATLAB is not C" ... for i=0:1:(c-1) %defining k1,k2 and k3 for each case k1(i)=f(t(i),y(i)); ... Matlab arra...

7 years ago | 1

Answered
How to save the leading zeroes to values
res=reshape(sprintf('%d',a),4,[]).'; pom=str2num(res); to produce the decimal representation of the bit pattern. Is this what...

7 years ago | 0

| accepted

Answered
Concatenating two tables with different array lengths in a variable of type 'char'
"it makes me wonder if it's not possible to have strings of different length in a Table variable in different rows" Just like a...

7 years ago | 1

| accepted

Answered
Help me understand!
The key is line 17...

7 years ago | 0

Answered
How to make an array which plots certain points if another column has a certain value?
"Logical addressing"... isv=(v~=0); % the logical addressing vector for v plot(p(isv)) % plot the points (v...

7 years ago | 0

Answered
solving a function equal to zero
fsolve does the work for you...if you define the functional correctly-- fnY= @(x) (29-(6*x(1))-(18*x(2))); opt= optimoptions('...

7 years ago | 0

| accepted

Answered
Problem with overlapping bars in a plot with 2 y axis.
Answers/325849 bar graph with two yaxes Illustrates how to solve this...it's a pain TMW hasn't built a routine for such already;...

7 years ago | 0

Answered
I am trying to Combine a Line and a Bar Chart using Two y-Axes.
... yyaxis right hB=bar(C2,'FaceAlpha',0.80); ... Salt to suit...

7 years ago | 0

| accepted

Answered
Difficulty importing dates using readtable
The file doesn't match the format string -- it has a numeric value followed by two dates and who knows what else afterwards and ...

7 years ago | 0

| accepted

Answered
TEXTSCAN not value, comma, space problem.
Use readtable instead with a FixedWidthImportOptions object. You can begin by seeing if detectImportOptions can figure it out o...

7 years ago | 1

| accepted

Answered
how to solve exponential equation
opt= optimoptions('fsolve','Display','none'); X0=15; soln=arrayfun(@(e) fsolve(@(x) fnE(x)-e,X0,opt),ee); NB: There are two ...

7 years ago | 0

| accepted

Answered
how to solve exponential equation
fnE=@(x) 0.4075*exp(-((x-14.87)/11.39).^2) + 0.5621*exp(-((x-18.64)/27.74).^2); ezplot(fnE,[0 100]) hAx=gca; hL=hAx.Children;...

7 years ago | 0

Answered
How to extract values from array
disp(hist_points{5}(1)); % for first element in cell 5 Read up in the documentation on cell arrays about dereferencing.

7 years ago | 1

| accepted

Answered
Adding Zeroes and Ones into a Vector
>> v=reshape([reshape(v,[],3),[0 0 1].'].',1,[]) v = 0 0 1 0 0 1 0 0 1 0 0 1 ...

7 years ago | 2

| accepted

Answered
Nested FOR loops and creating text file (3d-layers) too slow.
So, as suspected, just generate the data to print and use the desired formatting string: % generate some sample data... A=1001...

7 years ago | 0

| accepted

Answered
How to delete repeating column or duplicate column in MATLAB? of type Double
>> uA=unique(A); >> B=[uA;histc(A,uA)] B = 1 2 3 4 5 2 2 2 2 1 >> ADDENDUM: Ab...

7 years ago | 2

Answered
Windows .NET Framework Update Breaks READTABLE()
Steven, the update was/is 2019-05 Security and Quality (HAH! -- dpb) Rollup for .NET Framework...(KB4499406) Published 5/14/201...

7 years ago | 0

Question


Windows .NET Framework Update Breaks READTABLE()
Not so much a Q? as a report... Got up this AM to discover Windwoes had installed Office and OS update. After the interminable...

7 years ago | 2 answers | 0

2

answers

Answered
How can I isolate the (x, y) from a (x, y, z) dataset?
Well, there are 142 100x190 arrays possible, which one(s) do you want? Just index... for i=1:size(XYX,3) % iterate ov...

7 years ago | 0

Answered
How do I break y-axis to improve visualisation when plotting intervals as errorbars?
"P.S. If there is any other suggestion about how to plot intervals in matlab for good visualization I will appreciate it." For ...

7 years ago | 0

Answered
read multiple csv files and extract first 10 rows only
Just read each file in turn and save the first N lines... NLines=10; % how many wanted to save...make variable so ca...

7 years ago | 1

| accepted

Question


WRITETABLE to spreadhseet mysterious failure
>> writetable(tMismatch) >> type tMismatch.txt Fund,Acct,B_Student,SID,B_Paid,R_Student,R_Paid,R_Award,MatchStatus,R_Formula...

7 years ago | 1 answer | 0

1

answer

Answered
Sorting same rows & columns in two different matrices?
Piece o' cake with logical indexing... C=B(isnan(A)); % just return the values ix=isnan(A); % return the pattern i...

7 years ago | 0

Answered
fplot doesnt give the same result of plot
So, why not just use plot if that's what you want? But, read the doc for fplot -- all is explained: Description ... fplot(f)...

7 years ago | 0

Answered
Replace elements in array with smaller array
Just read into a dummy variable and store only the N samples wanted. Nothing fancy needed at all. % names of the files: % MIC...

7 years ago | 1

| accepted

Answered
How can I get the number between 2 numbers?
ix=cell2mat(arrayfun(@(n)find(PA==n),n,'uni',0).'); PA=arrayfun(@(i1,i2)PA(i1+1:i2-1),ix(:,1),ix(:,2),'uni',0); PB should be o...

7 years ago | 0

| accepted

Load more