Answered
How to continue the queueOutputData() after execute stop()
You may refer to the solution provided to the similar question here

6 months ago | 0

Answered
How to subset a table with character elements
For cell arrays, in case of comparison the operator “==” doesn’t help. As you mentioned in the reference document, it worked sin...

6 months ago | 0

Answered
How to assign vectors to existing vector
Without logically going to each element you can use functions like find(), intersect(), setxor() for vectorization in achieving ...

6 months ago | 0

Answered
Select with the cursor in a plot the interval boundaries
You can select the points on the plot and save it to workspace with a variable name. One of the ways to do this is to select “Da...

6 months ago | 1

Answered
Measurement of Pulse and Transition Characteristics
Hi, To load in a similar way as you mentioned, you can save the signal as a mat-file. As an example, saving "x", "y" in a mat...

6 months ago | 0

| accepted

Answered
unit vector direction at corner - PDE mesh
You may refer to the following link for information on applying boundary conditions to PDE model https://www.mathworks.com/help...

6 months ago | 0

Answered
How can i hold on output to run a matlab function with it during simulation ?
Hi, According to my understanding you want to store the output of each step simulation and want to access it in MATLAB Functio...

6 months ago | 0

| accepted

Answered
Code to Extract Value from A Specific Cell during Simulation
Assuming you are able to access the cell from workspace during the simulation, one of the ways to access the cell element from a...

6 months ago | 0

Answered
How to use audio toolbox
Hi, MIDI Message holds the information about audio related action. For the following command midimsg(‘NoteOn’,channel, note...

6 months ago | 0

Answered
Error generating a psk modulation
In the class HelperModClassTestChannel the timing drift is calculated based on the clock offset for the current frame and specif...

6 months ago | 0

| accepted

Answered
wav file analysis to decibel
You may find your answer in the following link https://www.mathworks.com/matlabcentral/answers/22112-how-to-plot-wav-file En...

6 months ago | 0

Answered
why am i getting only the last iteration value?
In the given code, “FRAM_FINAL” value is updated at every iteration. To make the vector “FRAM_FINAL” hold the results of each it...

6 months ago | 0

Answered
What R does scircle1 refer to?
The variable “rad” in scircle1(lat0,lon0,rad) is the radius of the small circle that is to be drawn. For more information, ref...

6 months ago | 0

| accepted

Answered
Multiple FFTs of segmented Signal with overlapping
Hi, To get the FFT of all the segments with a single call, you can use the “stft” (Short-time Fourier Transform) function which...

6 months ago | 0

Answered
Can the Negative edge triggered JK Flip Flop in Simulink be converted to positive edge triggered?
Hi, Yes, Simulink by default has Negative edge triggered JK Flip flop. To have the functionality of a Positive edge triggered ...

6 months ago | 0

Answered
run length compression algorithm
Hi, You can use the Run length Encoding function which is available in MATLAB File Exchange. Here is the link to download and ...

6 months ago | 0

Answered
Number generator from a power law distribution, given a mean, alpha and x range
Hi, You can generate random numbers from power law distribution using the RANDRAW function which is in MATLAB File Exchange. U...

6 months ago | 0

Answered
Windowed FFT magnitude / leakage effect
Hi, You may calculate & apply Amplitude correction factor to compensate the leakage effect. Here is an example N= 100; w =...

6 months ago | 0

Answered
Share Variables between functions in a Simulink level 2 matlab s-function .m file
Hi, To pass an object from Simulink software to MATLAB S-Function, use Run time objects. Here is the link for the documentatio...

6 months ago | 1

| accepted

Answered
How do I make the x-axis go to infinity so my graph can repeat?
Hi, Specifying “XLim” property as "“Inf” has similar effect as auto mode. However, you can view the plot for large range value...

6 months ago | 0

Answered
Need Help in Simplifying code
You can use the find function for vectorization. Here is how you can simplify the code. for j = 1:length(SurfAz) AOI(:...

6 months ago | 0

Solved


Test for balanced parentheses
Given the input inStr, give the boolean output out indicating whether all the parentheses are balanced. Examples: * If ...

8 months ago

Solved


Interpolator
You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

10 months ago

Solved


Implement a ROT13 cipher
Replace each character in string s1 with the character that is shifted 13 positions from it (wrap back to the beginning if neces...

10 months ago

Solved


Maximum running product for a string of numbers
Given a string s representing a list of numbers, find the five consecutive numbers that multiply to form the largest number. Spe...

10 months ago

Solved


The Goldbach Conjecture, Part 2
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

10 months ago

Solved


Sums with Excluded Digits
Add all the integers from 1 to n in which the digit m does not appear. m will always be a single digit integer from 0 to 9. no...

10 months ago

Solved


Prime factor digits
Consider the following number system. Calculate the prime factorization for each number n, then represent the prime factors in a...

10 months ago

Solved


Renaming a field in a structure array
MATLAB has a <http://www.mathworks.com/help/techdoc/ref/setfield.html setfield> and a <http://www.mathworks.com/help/techdoc/ref...

10 months ago

Solved


Counting in Finnish
Sort a vector of single digit whole numbers alphabetically by their name, in Finnish. See the Wikipedia page for <http://en.wik...

10 months ago

Load more