回答済み
How to get rid of the date on a plot over time?
Can't by just using the format string for the datetime ruler object; it will put whatever is needed to make the date labels uniq...

約8年 前 | 0

| 採用済み

回答済み
How do I prevent the legend from REALLY auto-updating
Actually, it's simpler than outlined; that kept extra lines around; don't even need that; just use the builtin feature of plot()...

約8年 前 | 1

| 採用済み

回答済み
greek symbols in my code
<https://www.mathworks.com/matlabcentral/answers/334191-how-can-i-use-a-symbol-as-a-variable?s_tid=answers_rc1-3_p3_MLT#answer_2...

約8年 前 | 0

| 採用済み

回答済み
How to get amplitude of the signal from FFT results?
Had a fairly protracted discussion on subject recently here <https://www.mathworks.com/matlabcentral/answers/395585-normalize-ff...

8年以上 前 | 1

回答済み
How to add error bars on bar graph with groups?
See <https://www.mathworks.com/matlabcentral/answers/379570-how-can-i-place-my-error-bar-in-separate-bar-center#answer_302325 <E...

8年以上 前 | 5

回答済み
Why is det a bad way to check matrix singularity?
You can start with <https://www.mathworks.com/help/matlab/ref/det.html#bubi9tw <Limitations of det>> for bare bones; I don't hav...

8年以上 前 | 2

回答済み
how do i make a function repeat 10 times.
Guillaume addressed how to loop, I'll note that the double loop above can be written succinctly as W=filter2(ones(3)/9,p,'v...

8年以上 前 | 0

| 採用済み

回答済み
How to shift the entire columns in raw file to the left and hence deleting all the empty columns in the sheet in matlab?
t=readtable(filename,'Sheet','Markings'); % tables are much more simpler than raw cell arrays ix=~all(ismissing(t)); ...

8年以上 前 | 0

回答済み
For loop within a function f
f=@(x)((0.0011*(x(2+i*N:j*N)-x(2-1+i*N:j*N-1)))' *exp(-0.0078*x(Battery_num*N+1+i*(N-1):Battery_num*N+j*(N-1))))*Battery_cost/...

8年以上 前 | 0

回答済み
How would I go about finding the standard normal probability based on the z-score?
doc normcdf doc normpdf When you know what you want but not sure the name, try something like >> lookfor normal re...

8年以上 前 | 1

| 採用済み

回答済み
What is the precision of *.datenum, which dir() returns
|datenum| is a double; hence has 15-16 significant digits; the safest way to store it is as a double but you'll get as close as ...

8年以上 前 | 1

回答済み
Biggest Error in Spline Interpolation
OK, good start and marks for posting work! :) You didn't define _x_ above; I presume you somewhere else did something like ...

8年以上 前 | 1

回答済み
Only keeping minimum values in a matrix and setting them to 1
[~,ic]=min(D,[],2); % find location min each row D=zeros(size(D)); % ...

8年以上 前 | 0

回答済み
How can I add a plot over a boxplot (same axis)?
Works ok here to plot() data on top of a boxplot; didn't use grouping variables though so the x-axes values are 1:N where N is t...

8年以上 前 | 2

| 採用済み

回答済み
How to use a loop with datetime and store the datetime values?
dtday=[t1:datetime(2012,4,18+1)].'; % array of fixed start times each day dtm=[]; for i=1:length(dtday) d...

8年以上 前 | 0

回答済み
How can I write into an excel file column wise?
for col=1,N V=yourColumnOutputFunction(... xlswrite(file,sheet,[xlsAddr(1,col) ':' xlsAddr(size(V,1),col)]); end ...

8年以上 前 | 1

| 採用済み

回答済み
[DISCONTINUED] MATLAB Answers Wish-list #4 (and bug reports)
Seems excessively strict given that the "extra-x" format is now default for all MS Office products; what's the reason isn't allo...

8年以上 前 | 3

回答済み
fprintf cell array if its size changes
Sure...just build dynamic format string... >> fmt=['function dX = myFunction(' repmat('%s,',1,length(myCellArray)-1) '%s)\n...

8年以上 前 | 0

| 採用済み

回答済み
What is the difference between .' and ' when transposing a matrix?
doc punct % Concise description of all Matlab punctuation-symbols syntax doc transpose doc ctranspose for the two ...

8年以上 前 | 1

回答済み
File data with columns arranged with different number of rows.
With the assumption of just three specific arrays, the last idea-- a=length(A);b=length(B);c=length(C); % len...

8年以上 前 | 1

| 採用済み

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

8年以上 前 | 0

| 採用済み

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

8年以上 前 | 0

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

8年以上 前 | 0

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

8年以上 前 | 0

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

8年以上 前 | 1

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

8年以上 前 | 0

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

8年以上 前 | 0

| 採用済み

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

8年以上 前 | 0

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

8年以上 前 | 0

| 採用済み

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

8年以上 前 | 0

| 採用済み

さらに読み込む