Respondida
How to split up column vector
In general, if you're thinking of starting with vector V and creating subvectors, say, A, B, C, ..., this is a very bad idea. I...

más de 7 años hace | 1

| aceptada

Respondida
How to create a matrix (64 X 6) with all numbers from 1 to 64, written by binary code?
D=double(dec2bin(0:63,6))-'0';

más de 7 años hace | 0

| aceptada

Respondida
Split 2 lines of a matrix?
B=[A(3:4,:);A]; % create new array keeping old A=[A(3:4,:);A]; % new array replaces/augments old More genericall...

más de 7 años hace | 0

| aceptada

Respondida
Dont know what Polyval is here doing :-/
You fit yd2 vs xd1 but then plotted against xd2. One presumes the fit should be against xd2 as well. BUT: A perfect illustrat...

más de 7 años hace | 2

| aceptada

Respondida
Why does fplot think my function is not vectorized
Because fplot is just looking at the source code, not the output and it doesn't recognize the reshape operation at the end--only...

más de 7 años hace | 1

Respondida
How to pick a set of data close to one another
Is the reference fixed/known a priori, computed from the overall dataset...??? Presuming the former above and is xref, and othe...

más de 7 años hace | 0

| aceptada

Respondida
How to filter out missing data from a text file with readtable()? Different data types in the same column.
Use the 'TreatAsEmpty' named argument to read the M lines as empty and will return NaN. Then just delete the rows that return i...

más de 7 años hace | 1

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

más de 7 años hace | 1

| aceptada

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

más de 7 años hace | 1

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

más de 7 años hace | 0

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

más de 7 años hace | 0

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

más de 7 años hace | 1

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 1

| aceptada

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

más de 7 años hace | 0

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

más de 7 años hace | 0

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 0

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 1

| aceptada

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 0

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

más de 7 años hace | 1

| aceptada

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

más de 7 años hace | 2

| aceptada

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 2

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

más de 7 años hace | 0

Pregunta


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

más de 7 años hace | 2 respuestas | 0

2

respuestas

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

más de 7 años hace | 0

Cargar más