回答済み
Why is NaN shown after fft is keyed in the command window?
Probably there's a missing value in the .csv file that was imported as NaN. What does all(isfinite(signaldata(:))) retu...

11年弱 前 | 1

| 採用済み

回答済み
Reading in ascii files with white space as delimiter.
A"The better way..." x=textread('radiosonde.ascii','','headerlines',3); I hadn't noted before the symptom of repeated de...

11年弱 前 | 0

回答済み
How can I find matching rows between two matrices and and retrieve a value to be applied to the matched row?
I don't think your desired result is consistent with your input... >> [A(:,6) B(ib,6)] ans = 2 0 3 1 ...

11年弱 前 | 0

| 採用済み

回答済み
Zeroing the start of my vectors with a for loop
_"I have 6 vectors. Gauge1, Gauge2, Gauge3..."_ Don't name variables this way!!!! See the FAQ for why not: <http://matlab.wi...

11年弱 前 | 0

| 採用済み

回答済み
How can I plot the coordinates of my data by using for loop
In Matlab, one generally avoids looping...once you've got the two starting positions and the number of points desired, then some...

11年弱 前 | 0

| 採用済み

回答済み
Matlab while loop complicated function. Help me figure this out.
Write a combined logic test of the two conditions in the initial *while* statement. Since this is homework, a hint rather than ...

11年弱 前 | 0

| 採用済み

回答済み
How to import excel file into a specific format in matlab
[x,hdr]=xlsread('yourExcelfile.xls'); will leave you with the numeric data in the array _x_ arranged as it is in the spread...

11年弱 前 | 0

回答済み
I have problems with multi legends
First, save the handle to the legend on creation. Then, also save the line handles created by *plot* each time in an array and ...

11年弱 前 | 0

回答済み
finding missing value using interpolation
Yeah, your second desired location is outside the range of the input and *interp1* won't extrapolate unless it's ordered to--use...

11年弱 前 | 0

回答済み
Want to add second to a time stamp
"Classic" date numbers... >> datestr(addtodate(datenum('10:12:49','HH:MM:SS'),526,'second'),'HH:MM:SS') ans = 10:21:35 >...

11年弱 前 | 0

| 採用済み

回答済み
Plot function generates markers but not lines
Wrong way to go about it...using the explicit design matrix and direct inversion is poor numerically...instead plot(WS(:,1)...

11年弱 前 | 0

| 採用済み

回答済み
Annotate the lines in plot with many line
doc text See example there and the "See Also" for *annotation* for more exotics...

11年弱 前 | 0

| 採用済み

回答済み
Why is my legend for the calculated bode plot appearing twice?
OK, I think I see where the problem lies -- TMW has fouled up things again with the inconsistency they've introduced with object...

11年弱 前 | 0

回答済み
Creating vectors stings of letters such as names
It already _is_ a vector-- >> s='qwerty'; >> whos s Name Size Bytes Class Attributes s...

11年弱 前 | 1

| 採用済み

回答済み
separating day month year from string
[d,mo,yr]=textread('yourfile','%2d.%2d.%4d'); if were only that column. For more columns, use the proper format string for...

11年弱 前 | 0

| 採用済み

回答済み
bar plot offset from left/right at small sizes
xlim([0.5 4.5]) Salt limits to suit based on number of bars and fractional spacing that pleases...

11年弱 前 | 0

| 採用済み

回答済み
xlswrite in different columns
In the manner as written specifically, no, but there's a much simpler way -- just *reshape* the array and write it in a shape th...

11年弱 前 | 0

回答済み
Problem with plotyy for standard deviation on my plot
Well you didn't tell what you got for an error but for starters is missing the x value for the second plot with an empty ar...

11年弱 前 | 0

回答済み
How do you print a cell matrix of different data types into a txt file
A major hassle it is, indeed...to use *fprintf* you've got to write a specific formatting string for every line so in an irregul...

11年弱 前 | 0

回答済み
Attempted to access f(97); index out of bounds because numel(f)=96.
for i=length(f) The above is simply i=length(f); there will be only one iteration performed. Since i==length(f), ...

11年弱 前 | 0

回答済み
i wnat change 'axes' positon please help me
figure hF(1)=subplot(2,2,1); hF(2)=subplot(2,2,3); doc subplot % for details... You can adjust the default posi...

11年弱 前 | 0

回答済み
Finding and plotting evenly-spaced points along a vector
Alternate way given the two end points [x,y]-- xy=[linspace(x(1),x(2),12).' linspace(y(1),y(2),12).']; returns the poin...

11年弱 前 | 1

回答済み
Similar Goal Seeker function like on Excel in Matlab?
*fsolve* is your friend... Recast your script into a function of T and then create an anonymous function with it and the targ...

11年弱 前 | 1

回答済み
boxplot labels from numbers and strings
_"[1,'b']"_ doesn't work outside of *boxplot*, either; you can't juxtapose character and numeric data in a vector. Use cell ...

11年弱 前 | 0

回答済み
Why is my legend for the calculated bode plot appearing twice?
... semilogx(butterWorthLP(1:3:end), butterWorthLP(2:3:end), 'b','linewidth',2) hold on; h = bodeplot(sys2,opts,'b-.'...

11年弱 前 | 0

| 採用済み

回答済み
Coefficient of determination from circular fit to (x,y) data.
If the contributors of the FEx submittal(s) you used didn't incorporate such, here's your opportunity to contribute! :) It'd...

11年弱 前 | 0

回答済み
Sorting 2D matrix
>> sortrows(A.',2).' ans = 23.0000 18.0000 26.0000 20.0000 6.0000 0.9988 1.4302 2.7403 2.9512 3...

11年弱 前 | 0

| 採用済み

回答済み
How do I manipulate a column in a data file ??
If it is an ASCII data file, then read the file, do the computation(s) on the column in question and rewrite it. If it were a...

11年弱 前 | 0

回答済み
time delay estimation algorithm
<https://www.google.com/search?q=time+delay+estimation+matlab&ie=utf-8&oe=utf-8>

11年弱 前 | 0

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

さらに読み込む