Respondida
an issue with Matrix Index exceed Matrix
Use the debugger to see where your implementation logic breaks down...but, the problem arises from function IDX =ExpandClus...

alrededor de 9 años hace | 0

Respondida
Index exceeds matrix dimensions.
... yN = 0.4000 yc = 0.3000 y = 0.3000 E = 0.3844 Index exceeds matrix dimensions. You've got all...

alrededor de 9 años hace | 1

Respondida
how to read grid data from text file ?
# Read the file as block of cellstr, convert to character array # Convert char array of 12x75 to 1*900 line=reshape(blk.',1,[...

alrededor de 9 años hace | 2

Respondida
Why does legend('Position') overwrite strings?
_"What am I doing wrong with legend('Position',...)?"_ Assuming that the text string _'Position'_ is going to be interpreted ...

alrededor de 9 años hace | 0

| aceptada

Respondida
plot graph with dates for different years
Create a |*datetime*| vector for the data and then select by month and day with logical addressing to build the datasets for eac...

alrededor de 9 años hace | 0

Respondida
How to add names to table variables from a large cell with names?
Looks peculiar orientation as doesn't keep the similarly-valued variables together, but per your request-- >> t=array2table...

alrededor de 9 años hace | 0

| aceptada

Respondida
Attempting to find a fit to this data
>> f=fit([x,y],log(z),'poly55') Linear model Poly55: f(x,y) = p00 + p10*x + p01*y + p20*x^2 + p11*x*y + p02*y^...

alrededor de 9 años hace | 2

| aceptada

Respondida
How to extract numbers from a text file located in the same column, but at consistent row intervals from multiple text files?
In general unless the files are truly huge it's simpler (and probably faster, too) to just read the file and then save what you ...

alrededor de 9 años hace | 0

Respondida
Using the curve fit tool. I would like to fit data to TWO straight lines
Can't find it because TMW hasn't implemented it. I just answered a question using a piecewise fit the other day at <https://www...

alrededor de 9 años hace | 0

Respondida
Removing leading values in a matrix
Probably easiest is to just process each column in a loop... for i=1:size(x,2) % over each column in x ...

alrededor de 9 años hace | 0

| aceptada

Respondida
How to fit a Gauss curve in the tails of a curve
If the data typically have such a discontinuity at the tails, a technique we used in the old online "SulfurMeter" which was a ga...

alrededor de 9 años hace | 1

| aceptada

Respondida
how to get rid of NaN column by column
DM=xlsread('DMdata.xlsx)'; for i=1:size(DM,2) data=isfinite(DM(:,i)); % do whatever with each column here; _data_...

alrededor de 9 años hace | 0

Respondida
Deleting rows in matrix due to a certain column's value
V=40000; % use variable rather than embed magic numbers in code ix=A(:,1)>V; % bum row logical vector A(ix,:)=...

alrededor de 9 años hace | 0

Respondida
How to obtain this format using either disp or fprintf??? Any basic instruction?
>> data=[1 1.00; 2 2.30; 3 5.79]; >> fprintf('F%d %.2f\n',data.') F1 1.00 F2 2.30 F3 5.79 >>

alrededor de 9 años hace | 0

| aceptada

Respondida
How to sort by time
>> dnm=datetime(c(:,1),'format','yyyy/M/d HH:mm'); % convert date strings >> target=datetime('2015/7/23 17:0...

alrededor de 9 años hace | 0

Respondida
problem assigning integer values in image to NaN
NaN is a concept for floating point arrays only; if the image is one of the integer classes the assignment will be as you noted....

alrededor de 9 años hace | 2

Pregunta


datetime error/inconsistency
>> datetime(1963,0,213) ans = 01-Jul-1963 >> datestr(datenum(1963,0,213)) ans = 01-Aug-1963 >> sum(eomda...

alrededor de 9 años hace | 2 respuestas | 0

2

respuestas

Respondida
Probabilistic analysis - failure frequencyseems unreasonable
The product of two Gaussian random variables is a linear combination of two Chi-square random variables: XY=[(X+Y)/2]^2 − [...

alrededor de 9 años hace | 0

| aceptada

Respondida
can someone explaing the computation for double sided and single sided spectrum in fft() example
The example is single-sided from F=0:Nyquist (Fs/2). Since the FFT returned by Matlab is double-sided, from -Fmax:+Fmax, ...

alrededor de 9 años hace | 7

Respondida
Why does textscan read only 95% of my data file?
There'll be a formatting discrepancy in the file at the offending line that causes |*textscan*| to fail. |*fgetl*| otoh reads t...

alrededor de 9 años hace | 0

Respondida
function help - selects the even rows and columns and returns of matrix M and then puts them in a new matrix called even
You didn't pass any argument to the function when you called it -- hence there was nothing inside the function for _M_ M=ra...

alrededor de 9 años hace | 1

| aceptada

Respondida
Global variables in functions
>> help clear ... | clear GLOBAL removes all global variables. ... However, using |global| is _not_ recomme...

alrededor de 9 años hace | 0

Respondida
how interpret Kolmogrov test outputs?
|h,p| are the results of the hypothesis test at the (default) 5% significance level-- |h| is a logical "pass/fail" flag while |p...

alrededor de 9 años hace | 1

Respondida
Why do I get undefined variable error in the attached code?
As another wrote, looks like you transposed the LH and RH sides of the assignment of input argument _x_ to local variables. Why...

alrededor de 9 años hace | 0

Respondida
is it possible to convert a vector from a dataset to a categorical array in matlab 2012 b?
In R2012b |categorical| is an abstract class in the Statistics Toolbox; you cannot create instantations of it. |nominal| and |o...

alrededor de 9 años hace | 0

Respondida
Add a marker to surf plot
You've got the surface occluding the z-axis values -- to make the point show try something like ZMax=max(Z(:)); plot3(x,...

alrededor de 9 años hace | 1

| aceptada

Respondida
Plot shifting between two values in if statement
... for k=1:N-2*K, ... if(e_k>e_k1) estimated_c=estimated_c+(c)*e_k*y_k/n; plot(k,estimated_c,'...

alrededor de 9 años hace | 0

| aceptada

Respondida
Getting a new matrix after comparing two matrices in some conditions
_"... can check whether the rows of L1 are included in K1. I can't count the times and formulate new matrix R"_ Well, if you ...

más de 9 años hace | 0

| aceptada

Respondida
readtable with fixed column width from a txt file
The warning is simply |*readtable*| complaining about the space in the first column heading; it's not smart enough to just smush...

más de 9 años hace | 0

| aceptada

Respondida
Interpolating from different rows in a for loop
Well, the syntax to address the row after the current is, as you've written, X(indx+1,:) but in your code n = length(X(:,1...

más de 9 años hace | 0

| aceptada

Cargar más