Answered

Matrix dimensions must agree error

The error message is very clear, R*f is not the same size as X (or a size compatible with X), hence you can't do the subtraction...

Matrix dimensions must agree error

The error message is very clear, R*f is not the same size as X (or a size compatible with X), hence you can't do the subtraction...

5 hours ago | 0

Answered

How to do Table Look-up?

Matlab has you covered with unstack: desired_table = unstack(Processed_Data, 'Value', 'Name') You'll get NaN for missing value...

How to do Table Look-up?

Matlab has you covered with unstack: desired_table = unstack(Processed_Data, 'Value', 'Name') You'll get NaN for missing value...

9 hours ago | 2

| accepted

Answered

Is function "nprocess(x,y,z)" still avialable?

Doing a search for matlab nprocess with your favorite search engine shows that nprocess may be part of either this Filexchange e...

Is function "nprocess(x,y,z)" still avialable?

Doing a search for matlab nprocess with your favorite search engine shows that nprocess may be part of either this Filexchange e...

9 hours ago | 0

Answered

How to pass the object name as a selectable property?

You can, since hgtransform support dynamic properties, so you could do something like: %create the properties: ASSEMBLY.addPro...

How to pass the object name as a selectable property?

You can, since hgtransform support dynamic properties, so you could do something like: %create the properties: ASSEMBLY.addPro...

10 hours ago | 0

Answered

Single array inside cell to double

If you want to convert each matrix inside the TEMP cell array to double, then: something = cellfun(@double, TEMP, 'UniformOutpu...

Single array inside cell to double

If you want to convert each matrix inside the TEMP cell array to double, then: something = cellfun(@double, TEMP, 'UniformOutpu...

12 hours ago | 0

| accepted

Answered

getting errors in running this.

I would recommend you use readtable instead of importdata. importdata may not return what you expected if the file format change...

getting errors in running this.

I would recommend you use readtable instead of importdata. importdata may not return what you expected if the file format change...

12 hours ago | 0

Answered

How to use regexp for the following?

If you want to extract two uppercase letters followed by four digit: regexp(yourinput, '[A-Z]{2}\d{4}', 'match') I recommend t...

How to use regexp for the following?

If you want to extract two uppercase letters followed by four digit: regexp(yourinput, '[A-Z]{2}\d{4}', 'match') I recommend t...

1 day ago | 0

Answered

How to get a specific variant of the greek symbol tau?

The latex symbol for this is \uptau, unfortunately matlab latex parser doesn't support it. As Sindar commented, you can try to ...

How to get a specific variant of the greek symbol tau?

The latex symbol for this is \uptau, unfortunately matlab latex parser doesn't support it. As Sindar commented, you can try to ...

1 day ago | 0

| accepted

Answered

Measuring the width and hight for smallest Bounding Boxes of detected objects

For the area of Bounding Boxes what is the unit used? pixel squared. If you want to convert to physical unit (e.g. ) you need t...

Measuring the width and hight for smallest Bounding Boxes of detected objects

For the area of Bounding Boxes what is the unit used? pixel squared. If you want to convert to physical unit (e.g. ) you need t...

1 day ago | 0

| accepted

Answered

I have a table in Matlab with one column - '{"camera":{"avg":1,"exposure":1,"gain":0},"encoding":"utf-8","fft":{"carrier":{"x":1422,"y":614}},.. I would like to search and store single values, like 'y': 614 from this data. Is there a way i can do it?

It's not clear how your data is stored. However, what you show is json encoded which is easily decoded with matlab: %demo text....

I have a table in Matlab with one column - '{"camera":{"avg":1,"exposure":1,"gain":0},"encoding":"utf-8","fft":{"carrier":{"x":1422,"y":614}},.. I would like to search and store single values, like 'y': 614 from this data. Is there a way i can do it?

It's not clear how your data is stored. However, what you show is json encoded which is easily decoded with matlab: %demo text....

1 day ago | 0

Answered

Assigning values to nodes of a graph

It sounds like you want to associate a unique ID to each node, one that doesn't change if you alter the graph. You can't use the...

Assigning values to nodes of a graph

It sounds like you want to associate a unique ID to each node, one that doesn't change if you alter the graph. You can't use the...

1 day ago | 1

| accepted

Answered

If a variable holds a bunch of images, what does (:, :, 1, i) mean?

The code you have assumes that the file contains a multiframe image with at least 100 frames. If the file has less frames the co...

If a variable holds a bunch of images, what does (:, :, 1, i) mean?

The code you have assumes that the file contains a multiframe image with at least 100 frames. If the file has less frames the co...

1 day ago | 1

Answered

not enough input arguments

Clearly, you've called the function without any input argument. Possibly, you've clicked on the green run button which is not go...

not enough input arguments

Clearly, you've called the function without any input argument. Possibly, you've clicked on the green run button which is not go...

1 day ago | 0

| accepted

Answered

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

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

1 day ago | 0

Answered

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

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

1 day ago | 2

| accepted

Answered

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

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

1 day ago | 1

Answered

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

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

5 days ago | 0

Answered

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

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

5 days ago | 0

| accepted

Answered

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

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

5 days ago | 0

Answered

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

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

5 days ago | 1

| accepted

Answered

multiple for loops split data

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

multiple for loops split data

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

6 days ago | 1

| accepted

Answered

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

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

6 days ago | 0

Answered

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

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

6 days ago | 1

| accepted

Answered

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

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

8 days ago | 1

| accepted

Answered

Create subfolders in the desired way

As Per isakson said, use fullfile instead of building paths manually. fullfile automatically inserts the correct path separator ...

Create subfolders in the desired way

As Per isakson said, use fullfile instead of building paths manually. fullfile automatically inserts the correct path separator ...

8 days ago | 0

| accepted

Answered

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

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

8 days ago | 0

| accepted

Answered

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

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

8 days ago | 1

| accepted

Answered

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

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

8 days ago | 1

Answered

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

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

8 days ago | 2

| accepted

Answered

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

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

8 days ago | 0

| accepted