回答済み
Plotting figures using figure handles
Once it's closed, it's gone and the handle, despite the variable still holding the value, is bogus. Only replotting from the ...

約11年 前 | 2

| 採用済み

回答済み
counting column bits with the same weight in binary array
n=hist(sum(array),0:size(a,1)); N _th_ element of n will contain counts for that number of bits from zero to size(array,1);...

約11年 前 | 1

| 採用済み

回答済み
Changing number of dates shown on xaxis
I had presumed the '2' was intended as '20' but had to go to lunch so Star beat my example :) But, the following that had prep...

約11年 前 | 0

| 採用済み

回答済み
Scalar Error bars???
As similar to the example in the documentation, E = 0.371*ones(size(x));

約11年 前 | 0

回答済み
polar coordinates to Cartesian coordinates.
doc hough ... The function returns ... the angle in degrees between the x-axis and this vector. doc pol2cart ......

約11年 前 | 0

回答済み
How to define the upper limit of y-scale in a log plot
You don't give any data nor attach a plot to see the issue specifically, but you set fixed axes limits on log axes the same way ...

約11年 前 | 2

| 採用済み

回答済み
Bar Plot with 2 Y axes and same X- axis
Since the two calls to *bar* in *plotyy* are independent of each other, there's no way for the information that you want two ind...

約11年 前 | 0

| 採用済み

回答済み
Extracting Table Data by Date
Yes, but it'll be easiest if you add a column that stores the datetime number (using late release) or the date number (if dateti...

約11年 前 | 0

回答済み
Strrep for multiple rows?
Case where cell strings win!!!! :) Given a variable character array of _ds_ for date(string), >> ds=['30-Nov-0000';'30-...

約11年 前 | 0

回答済み
index out of bounds because numel(xcorn)=1
You called it with a single valued array (vector) apparently with the argument _ncorn_ having a value greater than 1 (one). A...

約11年 前 | 0

回答済み
FFT in MatLab and Origin Pro comparison. Plots are the same but frequency data is a little bit different. Why?
First of all, you'll have to use the same number of points for both spectra, then the difference should simply be one of setting...

約11年 前 | 0

回答済み
weighted average w/ matlab
Have to decide how much you want the weights to be, but the general idea would be sotoo-- >> y=randi([100 150],40,1); % som...

約11年 前 | 0

回答済み
Text in plot that has x-axis in terms of datetime
A date number of the time x. Same idea as with ordinary axes; the date axes is one with the limits based on the first/last date...

約11年 前 | 1

回答済み
Calculating flow sessions from a water meter time series
OK, since this is a self-described learning exercise, hints first (treat it kinda' like homework with "show your work first") in...

約11年 前 | 0

回答済み
2 differenct size arrays, I want to make the shorter array the same size as the longer by adding Zeros between the indices or the missing numbers and make them the same length
No loops needed (or, in Matlab, wanted... :) ) >> O=[A(:,1) zeros(size(A,1),1)]; >> O(B(:,1),2)=B(:,2) O = 1 0 ...

約11年 前 | 0

| 採用済み

回答済み
Ploting vs. 24hour day time (string that resets to zero and repeats)
A) Convert times to a datenumber and plot against it instead. Use *datetick* to format the axis or use the new time class with ...

約11年 前 | 0

回答済み
Read specific column from last line from very large text file
In a text file unless it has very specific other characteristics (such as fixed-width fields, etc.), the answer is generally "no...

約11年 前 | 0

回答済み
Can I change axes scale color?
Properties are '[x|y]color' doc set doc axes % see properties available May be a method in newer releases besides *se...

約11年 前 | 0

回答済み
How do I replace a single word in a text file while maintaining all other text?
... if ~isempty(match) str = strrep(str,'ESPN','ESPN_Magazine '); end

約11年 前 | 0

| 採用済み

回答済み
How do I loop over xlsread to load and save several excel files?
_What_, precisely, would be better depends on data you haven't provided; namely what you need to do with the data; for example i...

約11年 前 | 0

回答済み
Storing Data in Zero Vectors
Aren't you just looking for LocationSquare(out5(1,:)) = out5(2,:);

約11年 前 | 0

回答済み
Problem with hold onand plotyy
set(h1,'g',y1,'DisplayName','1'); is a syntax error, the handle object returned in h1 from *plotyy* is (possibly an array o...

約11年 前 | 0

回答済み
error using open, too many input arguments. error in fopen
_"error using open, too many input arguments'."_ clearly is bogus as an error message for *fopen*. Note above it says "open" ...

約11年 前 | 0

| 採用済み

回答済み
Axis Labels/Tick Marks for surfm plot
I don't have the Toolbox so can't 'spearmint but it appears from your link there is no 'x|ytick' property for the specific objec...

約11年 前 | 0

回答済み
Issue with dlmwrite tab spacing
If you want a specific format including spacing, then use a specific format string with *fprintf* to write the file. "Higher-le...

約11年 前 | 0

回答済み
how can i select from an xls header with multiple rows the right row for column names?
Unless there's some klew a priori (like from the name of the file, say) to let you know how many header lines there are, then th...

約11年 前 | 0

回答済み
Reading data after Importing text files into variables with the same name
You've read the files already, you've got nFiles cells of a 2D array that's Nx2 for each file where N _may_ be a different lengt...

約11年 前 | 0

| 採用済み

回答済み
Plot data with time
[d,x,y]=textread('ivan.csv','%8s %f %f','delimiter',' '); dn=datenum(d,'HH:MM:SS'); % ERRATUM: had lowercase in time forma...

約11年 前 | 0

| 採用済み

回答済み
way to pull information from matrix - if X then store Y, but only if Y is not the last number in the column?
ix=x(1:end-1,1)==1; % all except last if 1 z=x(ix,2); % pick those up Can, of course, eliminate the intermedi...

約11年 前 | 0

| 採用済み

さらに読み込む