Beantwortet
how can I separate data per group ID
The fact that you don't have the same number of samples per group should not be a problem. As Stephen commented, this wouldn't p...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Matrix Division - Why am I getting a 1x1 matrix after dividing two 1x13 matrices?
The / operator solves a system of linear equation. If you want to perform elementwise division you need to use the dotted operat...

etwa 6 Jahre vor | 2

| akzeptiert

Beantwortet
how to select one first and second sample of a sampled signal?
I'm not sure what you are trying to achieve with the code you have written, it doesn't make much sense I'm afraid. The whole l...

etwa 6 Jahre vor | 1

Beantwortet
rotating this curve 20degrees
You seem to have found the correct function, so it's not clear what the problem is: hline = plot(t, sdata); rotate(hline, [0 0...

etwa 6 Jahre vor | 1

Beantwortet
Get cell array with childs from a cell array of identical structs
You're complicating your life by using a cell array to store scalar structures. Notwithstanding the extra memory used, it's an u...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Index in position 1 exceeds array bounds (must not exceed 1)
First, is your text file read properly. If I paste your data into a new text file, your code fails to read anything. It's much b...

etwa 6 Jahre vor | 0

Beantwortet
default behaviour of key press callback for matlab figure
Matlab can't know which keys your callback care or doesn't care about, so your callback receives all the key presses and indeed ...

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
multiple for loops split data
For the record, this is my suggested modification to the original code: workers = 12; destination = discretize(data.ID, linspa...

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
Implementing a stop button in AppDesigner
PIDs are used by the OS to track executables. m scripts don't have PIDS they're run within a matlab executable. Assuming the m s...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
How to extract event start and finish indices by finding rising edges and falling edges of an array?
I think you've answered your own question. "How to handle this situation? Would you remove those inappropriate events". Yes, you...

etwa 6 Jahre vor | 2

| akzeptiert

Beantwortet
Undefined operator '-' for input arguments of type 'matlab.ui.control.UIControl'. - getting an Error and and cant find a solution.
Matlab will always call your callback with two inputs. The first input is always the control handle triggering the callback, the...

etwa 6 Jahre vor | 2

| akzeptiert

Beantwortet
Create subfolders in the desired way
As Per isakson said, use fullfile instead of building paths manually. fullfile automatically inserts the correct path separator ...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
How to use methods of the class in the constructor of this class?
Having a method that calculates a particular property: No problem, particularly if the calculation is fairly complex as you have...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Too many output arguments when using "rowfun" function
Glad the problem is resolved, however I would strongly recommend to refactor the code. I like rowfun, varfun, etc. but for you I...

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
How to calaculate This standard deviation correction factor in Matlab?
I think you first need to clarify what is meant by "the 10-percentile value of standard deviations across features". I very much...

etwa 6 Jahre vor | 1

Beantwortet
wrong rational numbers generated by Matlab
Hum: >> rats(23/52) ans = ' 23/52 ' So, no issue there. Of course, 23/52 is not equal to 0.4423, so if you give ...

etwa 6 Jahre vor | 2

| akzeptiert

Beantwortet
Find specific text within string ('contains' command?)
If you're looking for an exact match, then it's strcmp you want, not contains. find(strcmp(list, searchinput))

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Creating a Random Upper Triangular Matrix with Unique Entries for Efficiently Computing Matrix Exponential.
The main issue is that a lot of your code is not valid matlab syntax, or doesn't make much sense, e.g if k >= k when is a valu...

etwa 6 Jahre vor | 0

Beantwortet
How to store sequence of bits as a bit stream and use the least possible memory ?
A bit similar to Matt's suggestion, but may be slightly more memory efficient since bwpack uses multiples of 32-bit, is to: spl...

etwa 6 Jahre vor | 0

Beantwortet
Erase data assigned to the variables for every iteration of the FOR LOOP
First, let's fix your starting point. As I said, for what you're doing tables are the wrong storage. They're more complicated to...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
How to increment a v value to an i position in a vector every n iterations ?
I don't really understand your example, particularly the E which doesn't appear to have any meaning (shouldn't the A in your exa...

etwa 6 Jahre vor | 0

Beantwortet
Click escape to stop my MouseDownfcn in the GUI?
Probably, the simplest thing is to disable whichever callback you don't want to execute once escape is pressed, so in the Window...

etwa 6 Jahre vor | 0

Beantwortet
Extract data from multiple excel files
I would recommend you use fullfile instead of strcat to build paths. This way you don't have to worry about path separators. As...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
How can i calculate cmyk values from rgb in matlab?
People who use simple formulae like the one in the other answer are people who do not understand CMYK. Typically, if you want ...

etwa 6 Jahre vor | 4

| akzeptiert

Beantwortet
How to apply recursion?
Recursion is rarely an efficient coding method and I wouldn't be surprised if you hit the default recursion limit on some large ...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Reading .txt file
Well, yes you can't read that as a single number. You can either store the whole lot as a vector of digit characters: digits_te...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Sum calendar Duration array
Are you actually interested in getting the result as a calendarDuration as opposed to plain duration? Indeed, for some reason su...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
imwrite error saying 'TransparentColor' is not a recognized parameter
Yes, the documentation list 'TransparentColor' as a parameter but only for GIF images. GIF is a very limited format, completely ...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Check appearance counts of multiple patters in a cell matrix
Any way to vectorize the code? Not really, you could cellfun it, but that's not vectorisation (cellfun is just a loop in disgui...

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
finding the name which are the same in an Excell file and make structure and sub-structure form them
From your description, it really sounds like you would be better off using a table rather than splitting the data into structure...

etwa 6 Jahre vor | 0

| akzeptiert

Mehr laden