Beantwortet
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,...

fast 13 Jahre vor | 0

| akzeptiert

Beantwortet
data appending in text file
Instead of opening the file with _write_ permission using |'w'|, open it in with _append_ permission using |'a'|.

fast 13 Jahre vor | 0

| akzeptiert

Beantwortet
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'...

fast 13 Jahre vor | 1

Beantwortet
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', ......

fast 13 Jahre vor | 1

| akzeptiert

Beantwortet
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. *=== ...

fast 13 Jahre vor | 3

| akzeptiert

Beantwortet
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...

fast 13 Jahre vor | 0

Beantwortet
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#...

fast 13 Jahre vor | 3

| akzeptiert

Beantwortet
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...

fast 13 Jahre vor | 1

| akzeptiert

Beantwortet
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...

fast 13 Jahre vor | 3

| akzeptiert

Beantwortet
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...

fast 13 Jahre vor | 10

Beantwortet
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>

fast 13 Jahre vor | 1

Beantwortet
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...

fast 13 Jahre vor | 1

| akzeptiert

Beantwortet
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 :...

fast 13 Jahre vor | 0

| akzeptiert

Beantwortet
How to reduce an existing matrix
buffer = M(:,1:10:end) ; M_reduced = buffer(1:10:end,:) ;

fast 13 Jahre vor | 0

Beantwortet
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...

fast 13 Jahre vor | 2

| akzeptiert

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

fast 13 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 13 Jahre vor | 0

| akzeptiert

Beantwortet
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:/...

fast 13 Jahre vor | 1

| akzeptiert

Beantwortet
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...

fast 13 Jahre vor | 0

Beantwortet
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 ...

fast 13 Jahre vor | 0

Beantwortet
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...

fast 13 Jahre vor | 4

Beantwortet
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...

etwa 13 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 13 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

etwa 13 Jahre vor | 1

| akzeptiert

Beantwortet
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...

etwa 13 Jahre vor | 2

| akzeptiert

Beantwortet
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...

etwa 13 Jahre vor | 1

| akzeptiert

Beantwortet
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...

etwa 13 Jahre vor | 1

Beantwortet
summing up array element
Hi, use CUMSUM: >> p_csum = cumsum(p) p_csum = 3 9 11 16

etwa 13 Jahre vor | 2

Beantwortet
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...

etwa 13 Jahre vor | 5

| akzeptiert

Beantwortet
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...

etwa 13 Jahre vor | 2

| akzeptiert

Mehr laden