Community Profile

photo

Jeffrey Clark


Last seen: Today Active since 2022

Statistics

All
  • Knowledgeable Level 3
  • 3 Month Streak
  • First Answer
  • First Submission

View badges

Content Feed

View by

Submitted


Utility package with NoGrow class and realDeal function
Utilities I find useful: NoGrow superclass to detect and/or prevent growth of arrays; and realDeal to augment MATLAB deal functi...

2 dagen ago | 1 download |

Answered
Looping if between 2 numbers
@jason, the and operator (&) produces a logical (true/false 1/0) result - not a range of values. Please look at MATLAB documenta...

4 dagen ago | 0

Answered
How to assign to a collection of object properties stored in an object array, using a numerical array of compatible type and size (one statement, without for-loop!)?
@Peter, without getting into your specific code I suspect that [obj.objArray(IndexSet).tstmp] = T(1:nI) is incorrect in that the...

4 dagen ago | 0

| accepted

Answered
How to shade the same area in each subplot in a 5x1 Figure?
@S_G, if you use debug to step thru the code you will see that the 2nd subplot initially gets the shading, but then line plotted...

8 dagen ago | 0

Answered
How to solve 'Error using image Complex values are not supported. Specify the color data as numeric or logical values.'
@Nisar Ahmed, I don't have the toolbox for ksdensity but the imaginary parts of SW_OPT are insignificant relative to their real ...

10 dagen ago | 0

| accepted

Answered
How can I evaluate an Simulink.data.Expression in a MATLAB script
@Karsten Gordon, Evaluate MATLAB expression in data dictionary section - MATLAB evalin (mathworks.com) or Evaluate MATLAB expres...

10 dagen ago | 0

Answered
How can I read data in backgorung from my NI hardware?
@Jan Tomaszewski, try moving the device setup into your main program and pass that dq (and maybe ch3) as a parameters to the wor...

10 dagen ago | 0

Answered
My snipet code have 3 harmonics, second's amplitude is maximum, but abs(fft(X)) returns first as maximum. I use MATLAB R2022a.
@Georges Theodosiou, you don't have enough samples to easily interpret the abs(fft), if you change Segm = 1:2048 to use 16384 yo...

11 dagen ago | 0

| accepted

Answered
fill value that has different size of array
@상훈 송, trying to save results directly into part of an array will not work unless you know exactly what the size of the return w...

13 dagen ago | 0

| accepted

Answered
Converting a list of binary numbers to a decimal numbers
@Martin Mittrenga, read up on num2str and strsplit which don't really support vectors of things. One way to do this without loop...

ongeveer een maand ago | 0

Answered
Fast fourier tranformer for Time series data
@Mohammed Lamine Mekhalfia, I think the answer provided by @dpb is valid although @Bjorn Gustavsson has valid points as well. By...

ongeveer 2 maanden ago | 0

Answered
is this expression right in MATLAB?
@Aisha Mohamed, what you are looking for is known as a Laurent polynomial - Wikipedia. The MATLAB Wavelet Toolbox has functions ...

ongeveer 2 maanden ago | 0

Answered
How to evaluate the computation time of some codes in parallel properly?
@Slivery, when using the cputime difference method don't forget to divide by 21 (the number of executions being averaged). Depen...

ongeveer 2 maanden ago | 0

| accepted

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

ongeveer 2 maanden ago | 0

| accepted

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

ongeveer 2 maanden ago | 0

| accepted

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

2 maanden ago | 0

| accepted

Answered
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 maanden ago | 0

| accepted

Answered
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 maanden ago | 0

Answered
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 maanden ago | 0

| accepted

Answered
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 maanden ago | 0

| accepted

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

3 maanden ago | 0

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

3 maanden ago | 1

| accepted

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

3 maanden ago | 0

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

3 maanden ago | 0

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

5 maanden ago | 1

| accepted

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

5 maanden ago | 0

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

5 maanden ago | 0

Submitted


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

6 maanden ago | 2 downloads |

Submitted


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

6 maanden ago | 1 download |