Answered
How to delete multiple row and column in matrix A and Delete row and column specified in matrix B?????????????/
On the assumption it really is to remove the full row/column, not the individual element, "Dead ahead" is sometimes the simplest...

8 years ago | 0

Answered
Indexing with different sized vectors
arrayfun(@(ix,n) mean(X(ix:ix+n-1),'omitnan'), Idx,Duration); Alternatively, instead of generating the start index and coun...

8 years ago | 0

Answered
How to find a value in x axis in 1d plot with a given y
>> mx=max(x); >> L=length(x); >> mxIxHalf=interp1(x(end-10:end),L-10:L,mx/2) ans = 26.9288 >> Have to us...

8 years ago | 1

Answered
nlinfit function, not enough input arguments
x = nlinfit(X,y,myfun,xstart) Is passing the function as an argument instead of the function _handle_; hence it's missing...

8 years ago | 0

Answered
Problems with a nested For Loop and max value
Em(a,b) = sum(Gm,1); % ERROR! “Subscripted assignment dimension mismatch” sum(Gm) (equivalent to sum(Gm,1) ) will retu...

8 years ago | 0

| accepted

Answered
h5read incorrectly reading exponents
Resolve what, precisely? >> 1.3675214E7 ans = 13675214 >> whos ans Name Size Bytes Class Att...

8 years ago | 0

| accepted

Answered
How do you find a sinusoidal curve on given data without using curve fit tool box?
Then you have to do it yourself with the nonlinear optimization routines...the example is at <https://www.mathworks.com/help/mat...

8 years ago | 0

Answered
How can i change 0.25*0.25 degree data file(matrix of 241*241) into 1.0*1.0 degree data file.
'Pends on what you want the result to represent... junPPTdecimated=jun_Ppt_monthly(1:4:end,1:4:end); % every fourth eleme...

8 years ago | 1

| accepted

Answered
What is the best way to downsample a tall timetable? Neither "decimate" nor "retime" seems to work.
The _newTimeStep_ or _newTimes_ input parameters could be used for the purpose; _newTimeStep_ is a fixed time step so that ...

8 years ago | 0

Answered
write vectors in cell array to excel
Frankly, the easiest way would be to start with a normal array of nan(50,MaxRowLength) and then fill each row with the results a...

8 years ago | 0

Answered
Importing Numerically Named Excel Files into MATLAB
The best solution is to not name files that way...when creating them use a format such that leading zeros are filled in the nume...

8 years ago | 0

| accepted

Answered
Plotting a box plot and a time series on the same graph ? as a distribution over time. boxplot(reshape(fluxO2tom01and23,4,[])); and plot(o_optode_mean1,1:196)
I answered this in the previous Q? in response to the comment after you said you didn't have |yyaxis|, Rebecca... <https://www.m...

8 years ago | 0

| accepted

Answered
Reading huge number of excel files in a loop
All that function is is a loop around |intersect| one vector at a time; that's all you need must do, there's no need to put all ...

8 years ago | 0

Answered
How to implement ||Wi||^2 = 1 for all i ?
Read doc norm

8 years ago | 0

Answered
How To extract a matrix from the text file?
fid=fopen('yourfile'); while ~feof(fid) l=fgetl(fid); if ~isempty(strfind(l,'begin')), break, end end array...

8 years ago | 0

| accepted

Answered
How do I merge 3 figures from 3 different programs in a single figure ?
Syntax for |copyobj| is two arguments, the handle (vector) of things to retrieve and the handle of the target. I've no idea w...

8 years ago | 1

Answered
I need to make a box plot, I am stuck making more than one
boxplot(reshape(date(4,[])) or, somewhat less cryptic perhaps if you are using an actual |timeseries| object with calendar ...

8 years ago | 1

| accepted

Answered
How can I add errorbars to a log-log plot?
Well, what is the log() of a negative value supposed to be? You didn't show the values so we can't tell but clearly value-err...

8 years ago | 0

Answered
Different values of datnumber for same date-time?
It's the result of floating point rounding in the two different ways you generated the datenum values -- In full_data_ti...

8 years ago | 1

| accepted

Answered
Importing values from excel
_"...It says NaN for cells such as 'DFX' or '78669-87'."_ As rightfully it should for numeric values; those aren't numbers bu...

8 years ago | 0

Answered
How can i find the maximum value of the first element in a stack of matrices?
You don't say or show how |A, B, C| were obtained, but therein is the heart of your problem -- do _not_ create sequentially-name...

8 years ago | 1

| accepted

Answered
How to import variable names array from Excel as symbolic variables?
Why symbolic variables; why not simple variables? It's generally an indication of a lack of structure in an algorithm to have...

8 years ago | 0

| accepted

Answered
how I can get fundamental signal in 50 Hz using FFT (fast Fourier transformer)
As David's modification would show, there's nothing wrong with the code for the frequency |if| the signal |R11voltage| was actua...

8 years ago | 0

Answered
how to let elements in each column of a matrix divided by the first element in each column
x=x./x(1,:); uses recent automagic(*) singleton expansion, if you have earlier release that errors on size mismatch then us...

8 years ago | 0

Answered
Using retime command for daily minimum when there are two variables
With appropriate acknowledgement to Sean, a slight rearrangement is a little less verbose in use...with the previous TD table of...

8 years ago | 1

Answered
How to collect datetime from text entry and use in plot?
_Almost_ there...you're trying to convert the string containing the date vector representation, but |datetime| doesn't know that...

8 years ago | 1

| accepted

Answered
Plotting scatter plot in a FOR loop with different colors
clrs=['r','g','b','c','m','y','k']; for i=1:N ... scatter(y,z,sz,c(i),'filled') ... end for the define...

8 years ago | 0

| accepted

Answered
Datetime format using tabularTextDatastore
Looks like you set the _'SelectedFormats'_ property to match the variables. TabularTextDatastore Properties ... Sel...

8 years ago | 1

| accepted

Answered
Efficiently processing unusual date/time format
Once you have the cell array that holds the date strings, then |datetime| _will_ convert from day of year... >> datetime(r,...

8 years ago | 1

| accepted

Load more