Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

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

11 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

| accepted

Answered
The code below shall be used to calculate numerically the integral of f(x), using rectangles. The while loop ' error> er_user_max' seems not to evaluate the logical operation properly and changes the row dimension of matrix 'save_area'.
_Way_ too much code instead of concentrating on the concern and put the question in the body of the text and make the title just...

11 years ago | 0

Answered
How I can get the data that meets the condition strcmp
First, I'd convert the column from string to numeric and then to get the unique values of the time vector, simply use *unique* ...

11 years ago | 2

| accepted

Answered
How to specifiy section of Array to write to certain cells in Excel file
Sure, but to address array elements in Matlab you don't use Excel spreadsheet notation; simply the range expression you want. P...

11 years ago | 0

| accepted

Answered
using plot w/ n=3 y axes
You don't show the pertinent issue of the *plotyy* call you use but hAx=plotyy(x, y1, x, [y2 y3]); will put the first on...

11 years ago | 0

| accepted

Answered
i not able to find error..not getting right plot
for x=0.01:.1:6 T=[]; ... T=[T P*Q*R]; end plot(g,T) You wipe out _T_ every pass thru the loop so the ...

11 years ago | 0

| accepted

Answered
How do i refer to an entire row in a matrix, while only specifying one variable in that row?
Unfortunately, here's where Matlab syntax of only being able to return and use the first argument inline hurts (albeit I don't h...

11 years ago | 1

| accepted

Answered
Trying to understand the MATLAB fft example and how to determine amplitudes of frequencies?
# It's not mandatory but FFT is fastest for powers of 2. That used to be much more of a significant issue than now w/ the adven...

11 years ago | 0

| accepted

Answered
[DISCONTINUED] MATLAB Answers Wish-list #4 (and bug reports)
Again the complaint of excessive white space (futile, I know :( ).

11 years ago | 9

Answered
[DISCONTINUED] MATLAB Answers Wish-list #4 (and bug reports)
Repeated bug report -- the link to Answer or Question if edited is broken when displays *Last Activity Edited by ___* thi...

11 years ago | 0

Answered
How to plot cell arrays in a for loop?
for k=1:numel(supportedFiles) dat=importdata(supportedFiles(k).name); figure % presume want a new figure for each f...

11 years ago | 0

Answered
sort( ) do not work (or?)
Both _are_ sorted, but as the quotes around the data show the data are stored as cell strings so it's in ASCII order, not numeri...

11 years ago | 2

| accepted

Answered
about cat function in matlab
doc colon % can (and will)...

11 years ago | 1

| accepted

Answered
Plotting 3 sets of data with error bars in different colors
errorbar(x,y1,ey1,'.k') hold on errorbar(x,y2,ey2,'.r') errorbar(x,y3,ey3,'.b') Why didn't you change the color if...

11 years ago | 0

Answered
Sample from the previous sample, whole rows.
Your second is simply another way for writing m2=m1(randperm(1000),:) If you're not regenerating m1 but simply rearrangi...

11 years ago | 0

Answered
How to pass function input as table name?
Use a cell string (see the example at _"Index Using a Logical Expression"_ which shows both a logical and a variable reference w...

11 years ago | 2

Load more