Beantwortet
help with regexpi expression match
One expression * 'chromosome' followed by anything up till ':' and one ':' * capturing group of one or more letter, digit, u...

mehr als 8 Jahre vor | 0

Beantwortet
How to empty 1 cell of a cell variable which is part of a file?
*_"How to empty 1 cell of a cell variable"_*   What exactly do you mean by _empty_? The syntax you use make me think you wa...

mehr als 8 Jahre vor | 0

Beantwortet
How to split into different tables a multi-level cell?
*_"final goal is to have a 428x11 table"_* Study this %% data = { {'name1',1,2,3,4,5,6,7,8,9,0} ...

mehr als 8 Jahre vor | 1

| akzeptiert

Beantwortet
dlmwrite/dlmread function help ?
* *|dlmwrite|* writes to a text file. That's the purpose and you cannot avoid it. * _"matrix AA [...] BB"_ &nbsp; see <https://...

mehr als 8 Jahre vor | 0

Beantwortet
How EFFICIENTLY to extract multiple column base on multiple condition
Your text make me think you want r = s.c2(:,s.state) or possibly r = num2cell( s.c2(:,s.state) ) but your code...

mehr als 8 Jahre vor | 0

| akzeptiert

Beantwortet
Once more... Avoid global variable!
Download <https://se.mathworks.com/matlabcentral/fileexchange/9082-parse-pv-pairs parse_pv_pairs by John D'Errico> and run this ...

mehr als 8 Jahre vor | 0

Beantwortet
How to EFFICIENTLY name multiple tables located inside a different cells
To solve the first problem, replace the cellfun statement by ddTrans = cellfun( @(v,m) array2table(m,'VariableNames',v) ...

mehr als 8 Jahre vor | 0

| akzeptiert

Beantwortet
How can I do the following with MATLAB Editor
# Unknown in the Matlab world. Who would want that ;-) # Good question. See <https://se.mathworks.com/help/matlab/matlab_env/...

mehr als 8 Jahre vor | 1

| akzeptiert

Beantwortet
Define regularExpression for Strsplit?
I've understood the question differently str = fileread( ... ); [ data_blocks, headers ] = strsplit( str, '(?m-s)^abc\...

mehr als 8 Jahre vor | 0

| akzeptiert

Beantwortet
Object array: modify properties of a single element
This is a bit tricky. You have created an array of ten object handles to the same underlying object. Thus, a change of the value...

mehr als 8 Jahre vor | 0

| akzeptiert

Beantwortet
long title problem printing
Two lines title({'First line';'Second line'}) Smaller font size h = title( 'abc' ) h.FontSize = 9; And Walter...

fast 9 Jahre vor | 0

| akzeptiert

Beantwortet
How do I dynamically generate a variable name for individual saving of temporary data into separate MAT files?
Doc on *|save|* says: Save the fields of structure s1 as individual variables in a file called newstruct.mat. sav...

fast 9 Jahre vor | 1

| akzeptiert

Beantwortet
Functions as function inputs with specified inputs
* See <https://se.mathworks.com/help/matlab/matlab_prog/creating-a-function-handle.html Create Function Handle>. Very useful and...

fast 9 Jahre vor | 1

Beantwortet
Parse text file???
Similar questions have been answered by me and others, e.g. <https://se.mathworks.com/matlabcentral/answers/312599-how-do-i-pars...

fast 9 Jahre vor | 1

| akzeptiert

Beantwortet
textscan 4th row into one string
One way using *|textscan|* fid = fopen( 'U:\EMC\SMI8A_75_FA.csv', 'r' ); result = textscan( fid, '%s', 1, 'headerlines',...

fast 9 Jahre vor | 0

| akzeptiert

Beantwortet
How to sort strings by lenght?
Without using a cell array >> A = ['adam ' 'bertil' 'cesar ' 'Ada ' 'berit '...

fast 9 Jahre vor | 0

Beantwortet
Matching based on the first word
Yes, try this match = cssm() match = 0 1 0 0 0 0 0 0 1 A_list items o...

fast 9 Jahre vor | 1

Beantwortet
Code takes forever to run and will never fully execute? Any tips to get it to run faster?
The profiler, which you call in the beginning of the script, tells you loud and clear to preallocate sevaral variables. See <htt...

fast 9 Jahre vor | 0

Beantwortet
For loop not working properly
Your code is sluggish. Preallocating variables, which the Code Analyzer proposes, would improve speed. * I put your code in a...

fast 9 Jahre vor | 0

Beantwortet
How to solve the error in this code??
The error is caused by xor( Xd, Ud(:,end) ) The R2017b doc on *|xor|* says Input arrays, specified as scalars, vect...

fast 9 Jahre vor | 0

| akzeptiert

Beantwortet
Folks: My program (below) does not return an error message, it does open a plot window, but no graph/data is plotted. I am not sure why. Thank you for your help. H Daniel
Plotting *one* value at a time as line doesn't work. Line is default. Two values are needed to make a line. Replace plo...

fast 9 Jahre vor | 0

| akzeptiert

Beantwortet
does the GUI read scripts?
* _"I am a PhD student and working on some traffic counting cards, the card has around 2900 rows ..."_ &nbsp; (excerpt from one ...

fast 9 Jahre vor | 0

| akzeptiert

Beantwortet
Error in storing the output of sprintf in a cell array
>> a{1}=sprintf('%s',name) Cell contents assignment to a non-cell array object. because *|a|* is assigned a string cons...

fast 9 Jahre vor | 0

| akzeptiert

Beantwortet
I need to store the values from calculation in the for loop instead it's given me a new value everytime
Replace filtEMG=((sqrt(sum(EMG(n:window+n).^2))/window)*20); by filtEMG(n) = ((sqrt(sum(EMG(n:window+n).^2))/wind...

fast 9 Jahre vor | 0

Beantwortet
Finding and saving identical rows in a matrix
I have an idea and that's (the two leftmost columns contain whole numbers) >> [C,ia,ic] = unique(A(:,1:2),'rows'); >> ...

fast 9 Jahre vor | 1

Beantwortet
Fastest way to access another matrix for all nonzero rows
>> B( all( A==0, 2 ), : ) = 0 B = 8 9 3 0 0 0 9 2 0 0 0 0

fast 9 Jahre vor | 0

| akzeptiert

Beantwortet
how to use the str2num for the whole array at once
_"I have older than what Mr Walter said"_ &nbsp; Thus the old way Read the file and convert the content to an old time string...

fast 9 Jahre vor | 1

| akzeptiert

Beantwortet
How to name every row of 100*2500 matrix?
_"So all I want is as followings"_ &nbsp; See <https://se.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-shou...

fast 9 Jahre vor | 0

| akzeptiert

Beantwortet
How can I write data to a text file using the symbol '/' in the end?
_"keep dlmwrite"_ &nbsp; That's not possible - AFAIK Doc says: dlmwrite(filename,M) writes *numeric* data in array M to an AS...

fast 9 Jahre vor | 0

| akzeptiert

Beantwortet
How to import big data files
_"running for a couple of hours"_ &nbsp; that doesn't sound right. * How many columns are there? * How much RAM do you hav...

fast 9 Jahre vor | 0

| akzeptiert

Mehr laden