回答済み
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,...

13年弱 前 | 0

| 採用済み

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

13年弱 前 | 0

| 採用済み

回答済み
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'...

13年弱 前 | 1

回答済み
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', ......

13年弱 前 | 1

| 採用済み

回答済み
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. *=== ...

13年弱 前 | 3

| 採用済み

回答済み
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...

13年弱 前 | 0

回答済み
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#...

13年弱 前 | 3

| 採用済み

回答済み
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...

13年弱 前 | 1

| 採用済み

回答済み
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...

13年弱 前 | 3

| 採用済み

回答済み
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...

13年弱 前 | 10

回答済み
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>

13年弱 前 | 1

回答済み
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...

13年弱 前 | 1

| 採用済み

回答済み
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 :...

13年弱 前 | 0

| 採用済み

回答済み
How to reduce an existing matrix
buffer = M(:,1:10:end) ; M_reduced = buffer(1:10:end,:) ;

13年弱 前 | 0

回答済み
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...

13年弱 前 | 2

| 採用済み

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

13年弱 前 | 0

| 採用済み

回答済み
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...

13年弱 前 | 0

| 採用済み

回答済み
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:/...

13年弱 前 | 1

| 採用済み

回答済み
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...

13年弱 前 | 0

回答済み
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 ...

13年弱 前 | 0

回答済み
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...

13年弱 前 | 4

回答済み
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...

13年弱 前 | 0

| 採用済み

回答済み
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...

13年弱 前 | 0

| 採用済み

回答済み
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 ...

13年弱 前 | 1

| 採用済み

回答済み
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...

13年弱 前 | 2

| 採用済み

回答済み
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...

13年弱 前 | 1

| 採用済み

回答済み
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...

13年弱 前 | 1

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

13年弱 前 | 2

回答済み
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...

13年弱 前 | 5

| 採用済み

回答済み
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...

13年弱 前 | 2

| 採用済み

さらに読み込む