回答済み

I want to find unique value(s) based on a given conditions

@Tulkkas, this should do it (I added a randomize of your sorted data since first, if it would always be sorted skip as indicated...

I want to find unique value(s) based on a given conditions

@Tulkkas, this should do it (I added a randomize of your sorted data since first, if it would always be sorted skip as indicated...

2年弱 前 | 0

| 採用済み

回答済み

Need help understanding rescale()

@Adrian Velasquez, according to rescale documentation each element should be rescaled to [0..1] using this method: l + [(A-...

Need help understanding rescale()

@Adrian Velasquez, according to rescale documentation each element should be rescaled to [0..1] using this method: l + [(A-...

2年弱 前 | 0

| 採用済み

回答済み

spline for corner object

@Mehri Mehrnia, use Transform Cartesian coordinates to polar or cylindrical - MATLAB cart2pol (mathworks.com) and sort by theta ...

spline for corner object

@Mehri Mehrnia, use Transform Cartesian coordinates to polar or cylindrical - MATLAB cart2pol (mathworks.com) and sort by theta ...

2年弱 前 | 0

| 採用済み

回答済み

Why am I not getting desired values using loop?

lbr = length(br_peaks); points = nan(lbr,7); % each row is 1->lbr; cols for a row are nan filled % could ...

Why am I not getting desired values using loop?

lbr = length(br_peaks); points = nan(lbr,7); % each row is 1->lbr; cols for a row are nan filled % could ...

2年弱 前 | 0

| 採用済み

回答済み

Why am I getting this error when trying to logically compare 2 arrays inside of a struct of the same length

@Bolaji, I believe that with each of the statements data(MainRawFilt).(dataNames{k}) = [] you are reducing the size of data.(dat...

Why am I getting this error when trying to logically compare 2 arrays inside of a struct of the same length

@Bolaji, I believe that with each of the statements data(MainRawFilt).(dataNames{k}) = [] you are reducing the size of data.(dat...

2年弱 前 | 0

回答済み

preallocating memory without storing numbers

@Philine Baumert, given that your issue is with code using the end index into arrays which by default won't work correctly with ...

preallocating memory without storing numbers

@Philine Baumert, given that your issue is with code using the end index into arrays which by default won't work correctly with ...

2年弱 前 | 0

| 採用済み

回答済み

When subclassing "double" with new properties, is there an easy way to access the data value?

@Robbie, see Subclasses of Built-In Types with Properties - MATLAB & Simulink (mathworks.com) Sorry but the subsasgn and subsre...

When subclassing "double" with new properties, is there an easy way to access the data value?

@Robbie, see Subclasses of Built-In Types with Properties - MATLAB & Simulink (mathworks.com) Sorry but the subsasgn and subsre...

2年弱 前 | 0

| 採用済み

回答済み

I am trying to solve for OS here, but keeping getting pi/2 even when I change L

@adam puchalski, you need to limit fsolve such that it doesn't attempt values that cause sqrt(cos(initial)-cos(theta)) to return...

I am trying to solve for OS here, but keeping getting pi/2 even when I change L

@adam puchalski, you need to limit fsolve such that it doesn't attempt values that cause sqrt(cos(initial)-cos(theta)) to return...

約2年 前 | 0

回答済み

Using "for" loop for summation of matrix product

@Nir Vaishnav, you don't say what any of the iputs are, but since kron will produce a matrix (unless both inputs I and bk are ei...

Using "for" loop for summation of matrix product

@Nir Vaishnav, you don't say what any of the iputs are, but since kron will produce a matrix (unless both inputs I and bk are ei...

約2年 前 | 1

| 採用済み

回答済み

preallocating memory without storing numbers

@Philine Baumert, keeping others in the dark doesn't shed any more light on finding what's hidden. So an answer doesn't seem pos...

preallocating memory without storing numbers

@Philine Baumert, keeping others in the dark doesn't shed any more light on finding what's hidden. So an answer doesn't seem pos...

約2年 前 | 0

回答済み

How to separate waves from a signal

@Abdelhakim Souidi , I couldn't determine if you had the data or just an image to work with. If you are working with just an im...

How to separate waves from a signal

@Abdelhakim Souidi , I couldn't determine if you had the data or just an image to work with. If you are working with just an im...

約2年 前 | 0

回答済み

Trying to model the dynamics of the non-regulated construct and the auto-regulated construct using the Gillespie algorithm, do you know why it doesn't reach 200 and stay?

@Jonathan Louie, I believe your deg_rate=k*x_nr should just be deg_rate=k.

Trying to model the dynamics of the non-regulated construct and the auto-regulated construct using the Gillespie algorithm, do you know why it doesn't reach 200 and stay?

@Jonathan Louie, I believe your deg_rate=k*x_nr should just be deg_rate=k.

約2年 前 | 0

回答済み

Subtracting equal elements of one array from another array of a different size

One way to allow MATLAB to compare different sized vectors is to have one be a column and the other be a row. Assuming we are st...

Subtracting equal elements of one array from another array of a different size

One way to allow MATLAB to compare different sized vectors is to have one be a column and the other be a row. Assuming we are st...

約2年 前 | 1

| 採用済み

回答済み

How can I save the output of a for loop onto the same column, when each iteration gives me an answer of different heights?

Store the itteration results in a cell array (not the default doubly type array you are using); see Cell array - MATLAB (mathwor...

How can I save the output of a for loop onto the same column, when each iteration gives me an answer of different heights?

Store the itteration results in a cell array (not the default doubly type array you are using); see Cell array - MATLAB (mathwor...

約2年 前 | 0

回答済み

how to create a signal with parameters that can be changed while the signal is running?

It is possible that this low-level audio interface could work for you: pa-wavplay - File Exchange - MATLAB Central (mathworks.c...

how to create a signal with parameters that can be changed while the signal is running?

It is possible that this low-level audio interface could work for you: pa-wavplay - File Exchange - MATLAB Central (mathworks.c...

約2年 前 | 0

送信済み

LinkedList provides for doubly and multiple linked lists

Dlnode and Mdlnode classes enhance: https://www.mathworks.com/help/matlab/matlab_oop/example-implementing-linked-lists.html#brik...

2年以上 前 | ダウンロード 1 件 |

送信済み

FormattedData provides aggregated 'disp' of class properties

Package +FormattedData classes aggregate and specially format object data of user defined classes to show their hierarchy and re...

2年以上 前 | ダウンロード 1 件 |