Réponse apportée
A problem while splitting a text input with regexp
>> fprintf('%d,', table) ; fprintf('\n') ; 115,97,109,109,121,32,121,111,32,121,111,13,10,121,111,121,111,32,119,105, 116,...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
data appending in text file
Instead of opening the file with _write_ permission using |'w'|, open it in with _append_ permission using |'a'|.

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Searching for values that a particular variable takes in a single text file
I would go for something like: buffer = fileread('data.txt') ; match = regexp(buffer, '(?<=AvgValue:\s*)[\d\.]+', 'match'...

plus de 12 ans il y a | 1

Réponse apportée
Trouble using textread to ignore certain elements in a .csv file (new to matlab!)
You could go for buffer = fileread('BrainTEST.csv') ; data = textscan(buffer,'%d %s %s %s %d %d %d %d %d %d %s %d %d', ......

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
represent a volume given two surfaces
*Saturday EDIT:* I took 5 minutes to build an example closer to your case; see the new section after my initial answer. *=== ...

plus de 12 ans il y a | 3

| A accepté

Réponse apportée
Ridiculously Simple Nearest Neighbor Search 3D
Look at PDIST, *PDIST2*, KNNSEARCH here: <http://www.mathworks.com/help/stats/nearest-neighbors.html> If you don't have the S...

plus de 12 ans il y a | 0

Réponse apportée
Converting .txt file to .xls format with Matlab as the interface.
I am illustrating my comment above with the following example: Assume the text file contains 15:28:43#00348#048.1#053.3#...

plus de 12 ans il y a | 3

| A accepté

Réponse apportée
Download older versions of a file in File Exchange?
It is not good practice, but if you are stuck with no time to update function calls in 100's of m-files because of a small chang...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
Code formatting in the forum
*EDIT @ 4:30pm EST:* strfind |-&gt;| regexp with neg. look behind for avoind matching |nbsp;|. Here is a simple crawler. It i...

plus de 12 ans il y a | 3

| A accepté

Réponse apportée
Why won't \n give me a new line?
You will need |\r\n| for producing a carriage return and a new line. This is a well documented issue between UNIX-based and Wind...

plus de 12 ans il y a | 10

Réponse apportée
Why can't I access the archived documentation for MATLAB?
Have you tried the following source? <http://www.mathworks.com/help/pdf_doc/allpdf.html>

plus de 12 ans il y a | 1

Réponse apportée
how to add to txt file from certain point
One way would be the following: fid_in = fopen('inFile.txt', 'r') ; fid_out = fopen('outFile.txt', 'w') ; cnt = 0 ; w...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
looking for specific data in a text file
Something around the following solution would work well: n = 150 ; e22s = zeros(n,1) ; g23s = zeros(n,1) ; for k = 1 :...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
How to reduce an existing matrix
buffer = M(:,1:10:end) ; M_reduced = buffer(1:10:end,:) ;

plus de 12 ans il y a | 0

Réponse apportée
How can I compute the mean, standard deviation, minimum, and maximum of a vector without using MATLAB's std function?
Say you have >> x = [4, 8, 7, 5] ; >> b = 6 ; If you wanted to subtract |b| to each element of |x|, you would do it wit...

plus de 12 ans il y a | 2

| A accepté

Réponse apportée
Comma separated data with text using dlmwrite
Try with the following instead of DLMWRITE. fid = fopen('try3.txt', 'w') ; % Opens file for writing....

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
How can I specify different entires in a vector - partially using a function
If |IC| is a vector, all your expressions IC(x) = something with |x| a floating point number, are invalid. |IC(x)| addres...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Displaying latitude and longitude on grid lines
If I understand well your question, I would manage to do it using AXESM labeling properties. Summary at the bottom of <http:/...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
repeat loop different sets of intructions
As you know the lower and upper boundaries for |t|, you could base your approach on a FOR loop. With both WHILE or FOR, you shou...

plus de 12 ans il y a | 0

Réponse apportée
Correlation funciton to find eigenvalues
Why not using |CORR2|? If your 12 matrices were stored in a cell array |M|, you would do something like n = numel(M) ; C ...

plus de 12 ans il y a | 0

Réponse apportée
Can arrayfun take multi-dimensional arrays as individual arguments?
The first thing that I would try to do is to update the function so it can take vectors/arrays. Then I agree with Sean, Andre...

plus de 12 ans il y a | 4

Réponse apportée
Uploaded command window contents to somewhere online?
The two main options are, assuming that you have access to some scheduler (crontab, etc) on the machine that runs MATLAB.. *1...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Turn the output of a script into a cell array?
If the question is not: _how to filter the cell array_ 720 Aero Drive, Buffalo, NY 14225, USA Buffalo, NY 14225, USA Che...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Using fscanf when some elements are not floating point
One way to do it is to start with string replacement.. to illustrate, say that the data file contains 4 5 6 7 8 9 ...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
Get GPS location from coordinates?
There are several solutions, depending the amount of data that you have to process, the time that you are willing to spend on co...

plus de 12 ans il y a | 2

| A accepté

Réponse apportée
How to automatically import data out of blocks in ascii files?
Several solutions would be available. Here is one which uses some of the most basic tools for reading ASCII file content: fi...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
comment je peux créer une matrice triangulaire inférieure remplit par 1 de très grande dimension?
La taille d'une telle matrice "pleine/full" de type "double" est environ 8GB >> 8*32400^2/1e9 ans = 8.3981 soit pl...

plus de 12 ans il y a | 1

Réponse apportée
summing up array element
Hi, use CUMSUM: >> p_csum = cumsum(p) p_csum = 3 9 11 16

plus de 12 ans il y a | 2

Réponse apportée
Proper Formatting in the 'fprintf' function
Right justification is the default and you would have to use |'-'| to enforce left justification. The issue with your code is th...

plus de 12 ans il y a | 5

| A accepté

Réponse apportée
Error using fprintf for cells
|G_code{1,1}{:}| is a comma separated list (CSL), which is not - I guess - what you thought it was. It is not possible to tell y...

plus de 12 ans il y a | 2

| A accepté

Charger plus