回答済み
How do I Remove Double Quotes from my Table?
The quotes are a fignewton of the Matlab display formatting; you can't eliminate them from the command window excepting by eithe...

8年弱 前 | 0

| 採用済み

回答済み
Error using xlim for datetime values
And, while above Answer is true, the comment about using |readtable| is sufficiently worthwhile will add another based on it wit...

8年弱 前 | 1

回答済み
Error using xlim for datetime values
While Steven L has the better overall, I'll point out the specific cause for the error in the existing code; as the other two re...

8年弱 前 | 0

回答済み
How to add two different linear fits to the same graph
function y=piecewise(coef,x) % return piecewise linear fit given [b1,m1,c,m2] as coefficient array and vector x % c is b...

8年弱 前 | 1

| 採用済み

回答済み
How to count the number of black pixels in each row & column seperately?
_x_ is the image array... [rmax,rloc]=max(sum(x)); [cmax,cloc]=max(sum(x,2));

8年弱 前 | 0

回答済み
How do I make a user defined function with the input being the file name in a string?
The users will probably very quickly get very tired of having to type in a fully-qualified file name. I'd suggest something m...

8年弱 前 | 0

回答済み
How can I convert binary vector to a single binary number?
The representation as 010110 visually is immaterial; to do that it will have to be character: b= [0 1 0 1 1 0]; sprintf(...

8年弱 前 | 4

| 採用済み

回答済み
Too high correlation value from xcorr and corrcoef for uncorelated sequences
Ah, but there _is_ quite a lot of correlation; remember it's not the magnitude of the values that matters, it's only whether the...

8年弱 前 | 0

| 採用済み

回答済み
How to subtract 'datetime' from 'datetime' in MATLAB GUI ?
The problem is converting to strings instead of just comparing... What _will_ work to compute the offset including DST if in ...

8年弱 前 | 0

| 採用済み

回答済み
Importing csv with dates
t=readtable('test-data.csv'); plot(t.Date,[t.MinimumTemperature__C_ t.MaximumTemperature__C_]) legend('Tmin','Tmax') ...

8年弱 前 | 1

回答済み
get vector orientation from coordinates of two ends
doc atan2 theta=atan2(x2-x1,y2-y1); If you'll write x,y as vectors as x=[x(1) x(2)]; y=[y(1) y(2)]; then you c...

8年弱 前 | 1

| 採用済み

回答済み
How to keep ordering of found indices when using contains?
It's not being sorted, it's returning the matches that are found globally just like you asked it to do, not by individual elemen...

8年弱 前 | 0

| 採用済み

回答済み
GUIDE patch in wrong plot
doc patch Syntax patch(X,Y,C) patch(X,Y,Z,C) ... patch(ax,___) ... patch(ax,___) creates the patch in...

8年弱 前 | 0

| 採用済み

回答済み
loglog plot ticks + getdata
Someone manually labeled the ticks in the example plot to scale from mV to V; the axis has to be in one set of units; it doesn't...

8年弱 前 | 1

| 採用済み

回答済み
How to level shift a sine wave mathematically?
Sure, it's just a linear scaling from the [-1,1] interval to [minV,maxV] x = sin(2*3.14*f*t); M=[maxV-minV]/2; ...

8年弱 前 | 1

| 採用済み

回答済み
using different colours of points in a biplot
From the doc, h = biplot(coefs,'Name',Value) specifies one or more name/value input pairs and returns a column vector of ...

8年弱 前 | 0

回答済み
how to write on to particular column in excel, starting from particular row
xlswrite('exp2.xlsx',transpose(duration),1,'E3');

8年弱 前 | 1

| 採用済み

回答済み
add units to colorbar TickLabels (format)
c.Ruler.TickLabelFormat='%g%%'; Unfortunately, you can only know about this by using Yair's function to discover undocumen...

8年弱 前 | 0

回答済み
Plot range of values as bars
OK, the |bar| option works pretty easily, actually, with some handle-diving for how things are organized. % first make up ...

8年弱 前 | 1

回答済み
How to create a random permutation that has specific values in a specific place?
Writing multiple sequentially-numbered variables is a bad idea in general but won't try to get into fixing that here...but if we...

8年弱 前 | 0

回答済み
What mean ''All zero sparse''
Yes; pretty easy to just check and see... >> A(3,3)=1; >> S=sparse(A) S = (3,3) 1 >> S(1,:) ans = All ze...

8年弱 前 | 0

回答済み
Converting a string containing a function (t) to a useable variable.
Need to convert string to the function--- >> t=0:pi/8:pi; % predefined t >> s='20*cos(4*t)'; % sample ...

8年弱 前 | 0

| 採用済み

回答済み
How can i plot mol fraction NO on many combustions cycle?
Can simplify code complexity significantly which helps in both writing and debugging in following line Y1no=1e6*yno(:...

8年弱 前 | 0

| 採用済み

回答済み
How do I write code to store the data in a textbox using the format (dd/mm/yyyy) the same image as shown.?.
set(handles.DateFind,'String',datestr(setDate, 'dd/mm/yyyy')); where |setDate| is your datenum value. I'd suggest not us...

8年弱 前 | 0

| 採用済み

回答済み
How to generate data from normal distribution to reflect a pre aassigned score to a variable?
Adjust the mean by some function of the weight--there's no information on by how much, specifically, you might think the differe...

8年弱 前 | 0

回答済み
How to reference a cell in a matrix only if it is preceded by a specific number?
This can probably somehow be done w/ the events objects in the |timeseries|; the overview doc talks about finding patterns but I...

8年弱 前 | 0

回答済み
Putting first line of text files in seperate rows
time_start_of_experiment = cell(number_of_files,1); for ii = 1:number_of_files varNames = textscan(fileID, format, 1, ...

8年弱 前 | 0

| 採用済み

回答済み
Bar chart plotting of two series
bar(data.Year(1),[data.SP500(1) data.EM(1)]) You're concatenating [data.SP500(1) data.EM(1)] as row vector so its length is...

8年弱 前 | 0

| 採用済み

回答済み
Import, sort and extract multiple excel files into 1 table/vector
Good start but have made it a little more complicated than need...to get the files in numerical instead of lexical order d=...

8年弱 前 | 0

| 採用済み

さらに読み込む