Answered
program for expression with text file inputs
See the FAQ... <http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F> There are many examples of file...

12 years ago | 0

Answered
What is the problem in the code? I am using R2011a
Please format your code so I don't have to... :( function pushbutton1_Callback(hObject, eventdata, handles) handles =...

12 years ago | 0

Answered
xlswrite is truncating my values
*format* has no bearing on anything except the command window display format. I see no such problem here -- >> xlswrite(...

12 years ago | 0

Answered
how to read .ascii files in loop?
See the FAQ at <http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F> The logical would be using *dlm...

12 years ago | 0

Answered
Using a selection structure to extract points of intersection between two arrays
SST=tos(ix); Hint: Lookup "logical indexing" in the documentation Tbar=mean(SST(:));

12 years ago | 0

Answered
How can I estimate parameters of the student's t distribution in a loop?
The returned distribution object (structure) has fields _mu_ and _sigma_

12 years ago | 0

Answered
Using a selection structure to extract points of intersection between two arrays
ix=iswithin(lat,5,60) & iswithin(long,308,343); done. :) function flg=iswithin(x,lo,hi) % returns T for values withi...

12 years ago | 0

| accepted

Answered
How can I use cross-correlation as a tool to align two signals before subtracting?
Demo of basic idea... x=rand(1,1000); % a random timeseries y=circshift(x,[1 -233]); % a copy shifted relativ...

12 years ago | 0

Answered
Error: Cell contents reference from a non cell array object.
Taking a chance with the crystal orb... _C = fda.'; %storing data in a cell array._ Excepting it isn't--you forgot the cur...

12 years ago | 0

Answered
how to call some columns and fprintf ???
This essentially identical to the previous question I answered... _i want print column 2 4 5 45_ Given array x of 50x50, s...

12 years ago | 0

Answered
Executing a big and time-consuming program
You'll have to segment it to save computed results up to the point at which you decide to stop and then have the facility to rel...

12 years ago | 0

Answered
How do I change axes limits for a semilogx plot
You mean axis([0.1 1000 -1 3]) instead...always see doc's for details to ensure you've got syntax correct first (of cour...

12 years ago | 0

| accepted

Answered
How to create an infinite loop until condition is met?
1) length(t) ... doesn't change when used to describe the range [in] "FOR"... Indeed. The upper limit of the FOR loop is c...

12 years ago | 0

Answered
fprintf (fid , ) , convert num2str and how to print ?
You don't say how you want _x_ printed but you don't need *num2str* at all. In fact, if you just want a table of the ending arr...

12 years ago | 0

Answered
Problem with saving file with built in new line
I generally just do the expedient for such stuff -- username=username(username>=' '); You can be more elegant (for some ...

12 years ago | 0

Answered
Can I change the font of the ticks of any individual axis? I dont want to change, say, x-axis ticks font but only my y-axis ones. Can anyone please help?
No can do natively, font characteristics are defined at the axes object level, not for each axis within the axes. You could m...

12 years ago | 0

Answered
(accepted) Matlab standard programming
<http://www.mathworks.com/matlabcentral/answers/95695-is-there-a-document-describing-matlab-coding-standards-or-a-good-programmi...

12 years ago | 1

| accepted

Answered
How can I do linear indexing in matlab?
One way amongst many -- B=reshape(reshape(A.',2,[]),1,[]); Consider how Matlab storage is in column-major order and what...

12 years ago | 0

Answered
Return columns with for rows containing a range of values
Given the ranges for x and y as _lo|hi, respectively, and the specific face as F-- ix=x(:,2)==F & iswithin(x(:,3),xlo,xhi) ...

12 years ago | 0

Answered
How do I read all of the hdf files in a directory sequentially while performing calculations on each one?
See the FAQ: <http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F>

12 years ago | 0

Question


Why aren't Edited Answers/Comments hyperlinks as Answers/Comments Are?
Pretty much asked in title--it's annoying that if one edits an answer for any reason that the hyperlink to the answer becomes in...

12 years ago | 0 answers | 0

0

answers

Answered
Array of time in seconds converted to Hours Minutes seconds.
I'm not sure what part the _1xyyy_ plays, but if you know the beginning date simply use supplied Matlab date functions to get th...

12 years ago | 0

Answered
Getting data in real time
Yes

12 years ago | 0

Answered
passing a mat file variable to a function
A) Just put the call to load the variable in your function, perhaps with a call to *uigetfile* to enable the user to select the ...

12 years ago | 0

| accepted

Answered
Is it right this way?
Other than you need a transpose operator (') on the array to write in row-major order -- fprintf(nomefile ,'%6.2g %8.4g\n',...

12 years ago | 0

Answered
What does the function 'norm' do?
It's the order of the norm requested, in this case the "2-norm" which is the same thing as the Euclidean norm... <http://lall...

12 years ago | 0

Answered
Combining arrays to form indices
One way... C=cell2mat(arrayfun(@colon,A,B,'uniformoutput',false));

12 years ago | 1

| accepted

Answered
Using for loop in fopen and fread function
See the FAQ <http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F>

12 years ago | 1

Answered
How do I display a character string array next to a data array?
doc num2str doc sprintf etc., ... One way... >> b = {'Floor '; 'Ceil '}; % use a cell array for convenience in de...

12 years ago | 0

| accepted

Answered
Which is the machine precision of Matlab?
Default in Matlab is double which is stored with 53 bits of precision. This converts to roughly 15-16 decimal digits of precisi...

12 years ago | 0

Load more