Respondida
Display time on boxplot
|boxplot| is another of the specialty plots that's somewhat hard to work with; TMW has a recent penchant for burying details tha...

más de 8 años hace | 0

| aceptada

Respondida
Can I use a variable value as the name of a vector?
The short answer is "Don't do that!" <https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html <Don't use e...

más de 8 años hace | 0

Respondida
How can I select data that meet a certain criteria in two different data sets?
Didn't you just try it???? >> one=[1 2 3 7 9]; theother= [2 6 7 3 11]; >> ix=one>5 & theother<5 ix = 1×5 logical arr...

más de 8 años hace | 0

Respondida
How do I rescale a map picture so the axes are lat and lon
Presuming the two points are not on EW or NS line and have sufficient resolution, you can solve for the linear conversion of pix...

más de 8 años hace | 0

Respondida
Problem with fit function
>> fitn=fit(x1,y1,'exp2') fitn = General model Exp2: fitn(x) = a*exp(b*x) + c*exp(d*x) Coefficients (with ...

más de 8 años hace | 1

Respondida
MATLAB not calculate all my data
Was too tired last night; building fence is tough work for old men... :) Got 3 mi in; only 3 mi more to go... :) Try the fol...

más de 8 años hace | 0

Respondida
Full factorial design in MATLAB
"Because" is probably the best answer...the two levels are simply coded levels. >> ff2n(2) ans = 0 0 ...

más de 8 años hace | 0

| aceptada

Respondida
how to simplify/consolidate repeat functions
Don't use sequentially number variables; use arrays or alternate storage techniques instead. See the FAQ for why not and mor...

más de 8 años hace | 0

Respondida
How to give single/global title over several subplots?
Nearly a FAQ...see <https://www.mathworks.com/matlabcentral/answers/100459-how-can-i-insert-a-title-over-a-group-of-subplots?s_t...

más de 8 años hace | 0

| aceptada

Respondida
How to append data to current row in an excel sheet???
doc xlsread doc xlswrite You can read/write from/to any area in the file; probably the simplest to code is to read the r...

más de 8 años hace | 0

| aceptada

Respondida
File data with columns arranged with different number of rows.
Three (basic) alternatives-- # concatenate the shorter vectors to the length of the longest with NaN or other missing value t...

más de 8 años hace | 1

Respondida
How to find a minimum value of a function in term of a variable?
Well, there's just one variable by name but that variable can be an array... >> fns = @(x) 5*x(1).^2 + 13*x(1) + 7*x(2).^2 ...

más de 8 años hace | 0

Respondida
How Do I Remove Scientific Notation From X/Y Axes on Plotted Data
Yes, when you set the tick label that then becomes hardwired text independent of the value. Are the x axis variable(s) in |da...

más de 8 años hace | 0

Respondida
How can I change an array into the scalar of its components?
Let the i/o rtl help... >> str2num(sprintf('%d',[1:4])) ans = 1234 >>

más de 8 años hace | 0

| aceptada

Respondida
Find unique rows in a cell array with mixed data types
>> t=cell2table(stations) t = 2×3 table stations1 stations2 stations3 _________ _________ _________ ...

más de 8 años hace | 1

| aceptada

Respondida
plotyy: how to use 'datetick' on both axis
_"It seems that 'datetick' does not allow using axis-objects, ..."_ Not so-- >> help datetick .... datetick(AX,...

más de 8 años hace | 0

Respondida
How to find Missing data and insert Nan
_"25101.0 and the second 30 mins is 25102.0."_ Then missing points will be where ix = [diff(t) ~= 1 | diff(t) ~= -23] + ...

más de 8 años hace | 0

Respondida
How to compare exponential numbers with 7-9 digits of accuracy
doc ismembertol

más de 8 años hace | 0

| aceptada

Respondida
How to save each data from for loop
Easiest solution is to save each in cell array since the subsets can all be differing sizes can't just store as planes in 3D arr...

más de 8 años hace | 0

| aceptada

Respondida
show baseline value on y-axis
If there isn't a tick at the baseline value, two choices-- following assumes have saved the necessary handles; hAx for axes obj...

más de 8 años hace | 0

Respondida
Don't seem to find the error
With venerable |datenum| >> datenum(2018,2,10)-datenum(2018,1,1)+1 ans = 41 >> or with new(ish) |datetime| ...

más de 8 años hace | 1

| aceptada

Respondida
Adding a scatter of points to a boxplot
Indeed, that seems to work just fine... load carsmall MPG % the sample dataset variable hold on scatter(...

más de 8 años hace | 1

| aceptada

Respondida
How do I get matlab to read a string of dates and times
|readtable| will import Excel dates as |datetime| values which you can then convert from Excel encoding to Matlab with the _'dat...

más de 8 años hace | 0

Respondida
Calculate the mean in a single operation with matrices
mngeo=geomean(M.*W); where |M, W| are the matrix and associated weights matrix

más de 8 años hace | 0

Respondida
Difference between character variables where one shows the whole word versus the value of an array?
'Pends on how you're storing and addressing it...a char() array is just that an _array_ of characters and so, just like a numeri...

más de 8 años hace | 0

| aceptada

Respondida
Removing matrix rows in while-loop
_"The columns are date, flow, and pH. I am trying to remove any row where the pH meter erroneously read 0"_ data(data(:,3)=...

más de 8 años hace | 1

Respondida
Fit-Curve through certain start point
The easiest way is to use one of John D'Errico's inestimably-valuable tools from the FEX; in this case <https://www.mathworks.co...

más de 8 años hace | 1

| aceptada

Respondida
How to see if the same point is plotted on two different graphs
Rik's point is a good one to use the actual data for the two plots providing it hasn't already been trashed. It's no major deal...

más de 8 años hace | 0

| aceptada

Respondida
Datenum Generating different numbers for same time difference
FP roundoff; |datenum| just uses a double for the time serial value; the integer portion is days and the fractional part the fra...

más de 8 años hace | 0

| aceptada

Respondida
How to plot only negative values in a WindRose?
Contact the author of the submission; perhaps will have some help/advice since was the author. As for the last error, Er...

más de 8 años hace | 1

| aceptada

Cargar más