Answered
How to creat a group of struct?
_"What is the data type this array?"_ &nbsp Answer: *|struct array|* _" How to achieve this?"_ &nbsp something like this ...

9 years ago | 0

Answered
extract 2 data(temperature) from string
Use *|regexp|* to match strings which * follow after the string "<temp" * consist of (digit,period,digit) * are followed by...

9 years ago | 1

| accepted

Answered
Extract numbers from mixed string.
Use *|regexp|* to match strings consisting of (digit,period,digit), and which follow after the string "temp" Str = ['<dat...

9 years ago | 1

Answered
EVAL is evil? Using variables created dynamically - info retrieval
The standard answer: * yes, EVAL is indeed evil * see the <http://matlab.wikia.com/wiki/FAQ FAQ> * try structures with dyna...

9 years ago | 1

Answered
Combine rows of 2 Matrices based on a columns cell value
Try the code below. (Note that I have modified the example somewhat. All values of *|A(:,2)|* should be members of B(:,10) ???) ...

9 years ago | 1

| accepted

Answered
Save changes to class properties with dot notation
MyData is a value class. Try a = a.addData(1) and classdef MyData < handle and see <http://uk.mathworks.com/hel...

9 years ago | 1

| accepted

Answered
Reading text file of different columns as empty in matlab
It used to be tricky to read files like this one with Matlab. I don't know whether The Mathworks provided a solution in a recent...

9 years ago | 2

| accepted

Answered
Extracting data from text file.
Given * only the numerical data of the files shall be imported * the values of the first column are ascending * the first 2...

9 years ago | 0

Question


How to report issues on Answers
Is there a simple way to make The MATLAB Central Team aware of issues on Answers? Requirements: * Unassuming: no need for th...

9 years ago | 1 answer | 0

1

answer

Submitted


tracer4m
tracer4m traces calls to methods and functions.

9 years ago | 2 downloads |

5.0 / 5
Thumbnail

Answered
Write a function to extracts number between 2 letters?
Without comments >> str = 'rfc_f123sars.tif' ; >> regexp( str, '(?<=_f)\d{3}(?=[sh]{1})', 'match', 'once' ) ans = ...

9 years ago | 0

| accepted

Question


Increase speed to read text file and parse date time data.
I'm searching a faster way to read this file and convert the date and time to serial date number. Datum Tid Värde 2015-1...

9 years ago | 1 answer | 0

1

answer

Answered
Vectorized code slower than loops?
Given * Matlab stores matrices in column-major order. * *|bessels|* and *|posMcontainer|* are both large Possibly the tr...

9 years ago | 1

| accepted

Answered
How to call sub or superclass constructor when recursively creating objects
I think, I understand and that it's doable. Replace chld1 = obj.Constructor(args); by str = class( obj ); ch...

9 years ago | 1

Answered
Where is the problem in this if-else structure?
_"whereas I should also get "w=1"."_ &nbsp No it should not, because doc says _"The statements execute only if previous expressi...

9 years ago | 4

Answered
Error when looping over an object array
Your code cannot compare names of different lengths >> 'aaa' == 'bbbb'; Error using == Matrix dimensions must agree...

9 years ago | 1

| accepted

Answered
using regexp for strings with space delimited inside text file
It seems that *|:|* can be used delimiter between "label" and value. I would read this file with %% fid = fopen...

9 years ago | 1

| accepted

Answered
Loop through multiple csv files
This is one approach, (which I like) %% folderspec = 'c:\same\folder'; file_glob = 'Scan_*.csv'; %% sad = di...

9 years ago | 0

Answered
Speeding up code: vectorization and others
Your code choked my computer. R2016a, no parallel toolbox, no mex. However, regarding the innermost loop for m = -n:2:n ...

9 years ago | 1

| accepted

Answered
Running an external program from Matlab
Two different alternatives * use the DOS command, *|tasklist|*, to find out whether a Dymola process already exists. * use S...

9 years ago | 0

Answered
Use a vector to populate columns in a matrix.
I'm reinventing <http://uk.mathworks.com/help/matlab/ref/sub2ind.html sub2ind, Convert subscripts to linear indices> ;-) See als...

9 years ago | 0

| accepted

Answered
How do I compare two similar sized matrices?
_"every single value in that matrix [ *|A|* ] is higher than the corresponding one in the other matrix [ *|B|* ]"_ is_gt =...

9 years ago | 0

| accepted

Answered
I want solution for this problem
This code might do what you are looking for %% ix = sscanf( T(:,end), '%1d' ); Y = cat( 1, Y, rand ); % add one ...

9 years ago | 0

| accepted

Answered
how to display the tree structure?
You provide too little information to spot the cause of your problem. How did you create the tree, *|t|*? I think the documen...

9 years ago | 1

| accepted

Solved


Word Counting and Indexing
You are given a list of strings, each being a list of words divided by spaces. Break the strings into words, then return a maste...

9 years ago

Answered
create zeroes of of row and colum of a huge matrix
_"such that matlab does not cry foul about exceeding the maximum array size"_ What exactly is the meaning of &nbsp _"a zero...

9 years ago | 1

Answered
not enough input arguments when using function handle
Replace str = ['@(t) curve_p_16_1_' num2str(i)]; f = str2func(str); p = f(t); in *|curve_p_16_1|* by p = fev...

9 years ago | 0

| accepted

Answered
How to make published html look as good as the blogs on MATLAB Central?
I don't think you have missed anything documented. I had a look at the html-code of Cleve's blog and I think it uses Beautiful ...

9 years ago | 0

| accepted

Answered
Sorting array with missing numbers
Is this what you are looking for? %% A = [1;2;3;7;8;10;14;15]; %% B = nan( A(end), 1 ); B(A) = A; >> B' ...

9 years ago | 0

Answered
save result of a loop in 3D matrix
_"saved as a page in 3D matrix"_ &nbsp Does the order of the _"pages"_ matter? Try >> D = cssm( df ); >> whos D N...

9 years ago | 1

| accepted

Load more