回答済み
Subscripted assignment dimension mismatch. error in for loop
Unless the difference between the indices is the same for each iteration, you'll "go boom" the first time the length is differen...

11年弱 前 | 0

回答済み
How to get details from a plot?
Alternately to Walter's solution based on interpolation to a particular resolution, solve directly for the locations wanted rath...

11年弱 前 | 0

回答済み
Drawing a straight line to a linear part of curve
Looks like piecewise regression to the rescue again...it has been the subject of some of my previous postings, one quite recent....

11年弱 前 | 0

| 採用済み

回答済み
define the 1/K strategy
wt=bsxfun(@rdivide,B>0,sum(B>0,2));

11年弱 前 | 0

回答済み
How to perform simple interpolation of excel data on matlab?
x=xlsread('yourExcelFile'); idx=isnan(x(:,2)); x(idx,2)=interp1(x(~idx,1),x(~idx,2),x(idx,1)); doc xlsread doc i...

11年弱 前 | 0

回答済み
format data for floating to integer to ascii
From help save ... '-ascii' 8-digit ASCII format. ... For ASCII file format...

11年弱 前 | 0

回答済み
How to get find() results as a matrix?
Yes, if you wrap the *find* call inside *ind2sub*-- ijNONZERO = ind2sub(find(I),size(I)); But, you really don't need the...

11年弱 前 | 1

| 採用済み

回答済み
How can I use sprintf and xlswrite to insert data into a specific cell?
start = 1; ... for i = start:finish my_cell = sprintf('K%d',i); ... The superfluous *num2str* aside (as sho...

11年弱 前 | 0

| 採用済み

回答済み
How to find the indices of a point on a curve
If you have the curve as computed points, see doc interp1 Switch the normal X,Y meanings to interpolate with Y as the in...

11年弱 前 | 0

回答済み
hi every body !! my question is how to get the position of the similar elements in same matrix??
Basic idea is >> find(M(1,:)==M(2,:)) ans = 1 2 4 5 >> Apply above for each row pairwise; note you'...

11年弱 前 | 0

| 採用済み

回答済み
Finding intersecting rows in column vectors of varying length?
>> [~,~,ix]=intersect([v1x(:) v1y(:)],[v2x v2y],'rows') ix = 1 5 >>

11年弱 前 | 0

| 採用済み

回答済み
Find Diverging point of two arrays
Alternatively, if similar behavior is always expected, you could fit a piecewise linear model to each curve and compare the slop...

11年弱 前 | 0

| 採用済み

回答済み
Generating random numbers with mean and std dev specified
The statistics for a normal are the mean and standard deviation, _not_ the range of the observations as for a uniform, say. In ...

11年弱 前 | 0

回答済み
Error : Matrix dimensions must agree
(A1-B*F1)' * P * (A1-B*F1) - P < 0 where, A1 is a 12 x 12 matrix B is a 12 x 4 matrix and F1 is a 4 x 12 matrix ...

11年弱 前 | 0

回答済み
With a 3D Matrix, How can I plot various 2D lineplots?
plot(reshape(data,6,[]).') will be the six in order from 1,1 to 3,2 by column order; iow each of the first column followed ...

11年弱 前 | 0

回答済み
Find a mean square root velocity of each row in matrix
v=rms(x,2)/C; % presuming one C; if per row, the define the column vector and use "./C" doc rms % for details

11年弱 前 | 0

回答済み
Creating character codes from text file
# is pretty straightforward to replace characters with empty, thereby removing them entirely. *regexp* is one way # build a "l...

11年弱 前 | 0

回答済み
Question with accessing field in a structure
isA=ismember([Recordings.Task].','A'); [] returns comma-separated list as array, .' transforms it to column vector... Ma...

11年弱 前 | 0

回答済み
Can you tell me why my x-axis grid in plot (b) shows incorrectly?
HG engine determines in default size there isn't enough room for the tick labels so defaults to the three values. Tick labels a...

11年弱 前 | 1

| 採用済み

回答済み
Add a second x-axis to a given multi-series plot
See File Exchange <http://www.mathworks.com/matlabcentral/fileexchange/4036-addtxaxis AddTXaxis> which does precisely what you'...

11年弱 前 | 0

| 採用済み

回答済み
Timestamp not converting to a string
Given the error and that *load* returned a double array, what follows was a logical next step-- >> load timestamps.mat >> ...

11年弱 前 | 0

回答済み
Fit function versus lsqcurvefit
It's your choice; *fit* is a wrapper around a whole bunch of stuff to try to make a general interface for the Curve Fitting Tool...

11年弱 前 | 0

回答済み
Why doesn't the graph show?
Check what your _t_ actually is (instead of what you intend it to be)...

11年弱 前 | 0

回答済み
Plotting of a prediction line over scatterplot
Sort age before computing y(*); it must be they're not in order so the line follows their sequence in order on the x axis. (*...

11年弱 前 | 0

| 採用済み

回答済み
Plot two graphs in the same figure, that have different number of points from text file
Try [f1 s1 f2 s2]=textread('data_mod.txt','%f %f %f %f'); f2(f2==0)=nan; s2(s2==0)=nan; subplot(2,1,1),plot(f1,s1) ...

11年弱 前 | 1

回答済み
How do I calculate the speed or a crane the moves by a rack using a pinion?
One revolution is 9.5*pi linear inches, roughly. Exactly will depend on the actual contact radius of the gear with the track. ...

11年弱 前 | 0

回答済み
Is it possible to directly access integer bits in computer memory?
You're probably barking up the wrong tree conceptually in thinking you're going to do anything faster than using straightforward...

11年弱 前 | 0

回答済み
Using multiple functions in combination
Looks to me like it would just be ring(t,nstars,ringradius,npoints,R,r) if you remove the lines within *ring* that redef...

11年弱 前 | 0

| 採用済み

回答済み
Inputting an equation as a variable
No need; if you set the input vector prior to calling *input* and your user can enter an executable Matlab statement, *input* ev...

11年弱 前 | 0

| 採用済み

さらに読み込む