回答済み
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...

8年以上 前 | 1

回答済み
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 ...

8年以上 前 | 0

回答済み
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...

8年以上 前 | 0

回答済み
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 >>

8年以上 前 | 0

| 採用済み

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

8年以上 前 | 1

| 採用済み

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

8年以上 前 | 0

回答済み
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] + ...

8年以上 前 | 0

回答済み
How to compare exponential numbers with 7-9 digits of accuracy
doc ismembertol

8年以上 前 | 0

| 採用済み

回答済み
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...

8年以上 前 | 0

| 採用済み

回答済み
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...

8年以上 前 | 0

回答済み
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| ...

8年以上 前 | 1

| 採用済み

回答済み
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(...

8年以上 前 | 1

| 採用済み

回答済み
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...

8年以上 前 | 0

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

8年以上 前 | 0

回答済み
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...

8年以上 前 | 0

| 採用済み

回答済み
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)=...

8年以上 前 | 1

回答済み
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...

8年以上 前 | 1

| 採用済み

回答済み
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...

8年以上 前 | 0

| 採用済み

回答済み
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...

8年以上 前 | 0

| 採用済み

回答済み
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...

8年以上 前 | 1

| 採用済み

回答済み
Split vector by parts with more evenly distributed length
Consider the following... >> for k=fix(sqrt(L)):-1:2,if rem(L,k)==0,disp([L,k,L/k]),end,end 2184 42 ...

8年以上 前 | 0

回答済み
Sort raw data from a stream, with more zeros on top
>> [~,ix]=sortrows([sum(Z==0,2) dE],[-1 2]) ix = 1 3 4 5 2 >>

8年以上 前 | 0

回答済み
Sorting and Equating n-number of least Values in the row to NaN
[~, idx] = sort(A(10,:),'ascend'); % keep the index; don't care about the values really A(10,idx(1:5))=nan; ...

8年以上 前 | 1

| 採用済み

回答済み
How do I make an array of elapsed times?
str = 'April 18, 1995 12:00:00'; t1 = datetime(str,'inputformat','MMM dd, yyyy HH:mm:ss'); stoptime=datetime(stopdate,'i...

8年以上 前 | 1

回答済み
Split variable length vector by parts
L-length(V); P=17; id2=[repmat(P,1,fix(L/P)) rem(L,P)]; % number elements in cell size P matching L plus remainder ...

8年以上 前 | 0

| 採用済み

回答済み
Is there a better way to write this short function, without the 'for' loop?
mtch=ismembertol(Tbl(:,VarNames),VarVals,Tol); but will be array, not vector and if return only the vector result of |find|...

8年以上 前 | 0

| 採用済み

回答済み
How to draw quiver in a logarithmic axes?
surf(... hAx(1)=gca; % first axes; make semilog in y, do whatever... hAx(2)=axes('position',get(hAx(1),'position')...

8年以上 前 | 0

回答済み
Variable number of plots in the same figure
Don't make the data arrays with sequential names; instead use arrays (by column per each variable) and then PLOT() can handle th...

8年以上 前 | 0

回答済み
Finding the Maximum of 6 matrices
The problem is the creation of sequentially named variables instead of using a form of data storage that makes addressing the da...

8年以上 前 | 0

回答済み
Error using reshape To RESHAPE the number of elements must not change.
Well, if I just make up a .wav file and try your code on it I find [fData,Fs] = audioread('handel.wav'); orig_siz...

8年以上 前 | 0

さらに読み込む