Answered
Analysing data that meets conditions
_"I specifically want to know if it is possible to scan through data looking for specific nodes which are within (1 <= x <= 2),(...

11 years ago | 0

| accepted

Answered
Number of digits in calculations
Symbolic Toolbox is the TMW solution; there are some extended precision support packages on the File Exchange I believe. The ...

11 years ago | 2

Question


Customization of Editor -- Add a Language and/or Extension?
I've tried adding an extension in the "File Extensions" at the bottom of the preferences page for the editor but see no effect--...

11 years ago | 0 answers | 3

0

answers

Answered
How to load many .txt files in loop?
See the FAQ at <http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F <How_can_I_process_a_sequence_of_files...

11 years ago | 0

Answered
How can i use a loop for text and numbers ?
A "brute force" engine... >> x=[1 1 10;1 2 30;2 1 5;2 4 8; 2 3 12; 3 2 15]; % convert A,B,C,... --> numeric >> C='A':'C...

11 years ago | 0

Answered
Hi, everyone. I want to run a file .bat in matlab and take the content of this file in matlab to make graphs.How can i do it?
doc dos % and/or system NB the optional second output. There's no absolute guarantee, but there's the place to start; if t...

11 years ago | 0

| accepted

Answered
how can i saving information in sequential unique file name ?
See the FAQ <http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F How_can_I_process_a_sequence_of_files?> ...

11 years ago | 0

Answered
problem with checking equality of successive x-intervals
The comparison as implemented is the only way to avoid exact comparison in floating point as you've surmised. At least thru R20...

11 years ago | 0

Answered
Read timestamp from data file with mixed formats
From doc datetime % format descriptor-- _"... To include the letters A-Z and a-z as literal characters in the format, e...

11 years ago | 0

| accepted

Answered
Help with for loop.
OK, that's enough to figure out that the iteration isn't somehow dependent upon what did the first but the data are independent....

11 years ago | 1

| accepted

Answered
How do I calculate log returns for stock prices?
r=log(data(2:end./data(1:end-1)); Annualized is dependent upon what definition you want--the averaged annualized would then...

11 years ago | 1

Answered
i need to get average for every 10 values for 8200x1 matrix
This type of question comes up so often it ought to have its own FAQ--use Matlab storage order in your favor-- vavg=mean(re...

11 years ago | 1

| accepted

Answered
Correlation matrix ignoring NaN
IIUC, any column containing any NaN shouldn't be included so reduce the matrix first... auxret(any(isnan(auxret)),:)=[]; ...

11 years ago | 0

Question


Connecting to COM server from VBA fails????
No joy ensues with any of the suggested syntax when execute an Excel macro... Matlab = New MLApp.MLApp or Dim Matla...

11 years ago | 0 answers | 0

0

answers

Answered
Read from a text file only characters
I'd probably just read the whole thing as a string and then remove the offending characters...

11 years ago | 0

Answered
How do I save a matrix and prevent overwriting from a for loop?
Don't need any loops -- pavg=mean(reshape(m(:,end),24,[])).'; % arrange by columns of 24-hr days and average new=[m(1:24...

11 years ago | 0

Answered
Plotting multiple histograms in one figure
Another's shown the basics of adding to a plot; I'll note there's no need for loops and generating variables like H1, H2, H3 is ...

11 years ago | 3

| accepted

Answered
How to compare either one value is closer to some other values?
Use *histc* with the _EDGES_ input the boundaries between desired bins; in your example it would be [~,ix]=histc(SLOPE,[-i...

11 years ago | 0

| accepted

Answered
Creating function to calculate elapsed days?? help!
Start with help timefun there should be several clues there that will give you ideas on how one might proceed...

11 years ago | 0

Answered
I have time in hours, for 7days, I want to plot two variable parameters in y axis and the time in days in x axis. How do i plot ?? I have problems converting hours to days along x axis.
Convert the time in hours to date numbers for the actual times (or use a reference arbitrary start time) and plot versus it. Th...

11 years ago | 0

| accepted

Answered
clustering for a Matrix
You could use *clusterdata* but with such a dichotomous data set and only a single variable, it would be overkill. How about ...

11 years ago | 1

| accepted

Answered
how to interpret FFT output
See doc fft example for demonstration of PSD and frequency and discussion of Matlab *fft* output. Basically, the magnit...

11 years ago | 0

Answered
Plot function fit using matlab
See doc plot for details and examples under the section 'Graphics/2-D and 3-D Plots' for _Line Plots of Matrix Data_ ...

11 years ago | 0

Answered
changing y limit of a plot
I presume you mean to normalize the values as simply changing the y-axis limits on the plot would just leave a solid blob across...

11 years ago | 0

Answered
Handling of large string array
Cast to _char_() if not (default Matlab storage is _double_). This will be 4:1 reduction as Matlab character is 16-bit. If you...

11 years ago | 0

Answered
How can I read a text file with fixed widths in MATLAB
OK, since have gone this far rather than amplify further on the above which is more comment than answer, try the following demon...

11 years ago | 0

Answered
How to enter the data into a excel and notepad that always start from a new line?
fid=fopen('seralno.txt','a+'); See doc fopen for details.

11 years ago | 0

Answered
Importing multiple datasets from one text file
*textscan* will do it fine with some effort...basically three separate calls with *'headerlines',2* and returning the array for ...

11 years ago | 1

| accepted

Answered
How can I read a text file with fixed widths in MATLAB
Why didn't you also rewrite the test for the number as I suggested in the previous thread--much easier to read the logic??? T...

11 years ago | 0

Answered
How to adjust axes and grid in GUI matlab? how to get more precision for example [-1 -0.5 0] other than [-1 0]
Presuming the handle to the axes is _hAx_ for brevity, xLim=xlim(hAx); % return the current x limits for the axes set(h...

11 years ago | 0

Load more