Answered
How to observe this portion of the graph
There are view control tools in the figure toolbar/menu. In newer versions, there's also contextual axes toolbars. You...

5 years ago | 0

| accepted

Answered
How can I detect the number pressed from a dtmf tone (.mat) file?
Basing off of this example: https://www.mathworks.com/help/signal/ug/dft-estimation-with-the-goertzel-algorithm.html % this ...

5 years ago | 2

| accepted

Answered
Image processing - pixel comparison
The filter you describe doesn't make use of its height. If it's only evaluating each row within the window independently, it's ...

5 years ago | 0

Answered
Unable to perform assignment because the size of the left side is 20-by-1 and the size of the right side is 20-by-20-by-3.
I don't have CVT, so I can't test this, but insertText() is returning an RGB array and you're trying to fit it into a single pag...

5 years ago | 1

| accepted

Answered
Look for Values in next column (max. 5 Values next)
This could be done without a loop, but it gets clumsy and awkward. I'll just use a loop. A = [0 0; 0 0; 0 0; 2 ...

5 years ago | 0

| accepted

Answered
I have to select region and calculate the area of the region.
The result from impoly() is a polygonal ROI object, not an image. You can convert the result of impoly() to a logical mask by d...

5 years ago | 2

| accepted

Answered
i want to transform this into a function
I don't really see why you need a function if you can just do Q = [q(2) diff(q(2:end))]; But if you really want one: You co...

5 years ago | 1

Answered
how to find value of variable in natural logarithmic
This can be done a number of ways. It's a log plus a positive linear function of x. There will be only one solution. That make...

5 years ago | 0

Answered
Index in position 2 exceeds array bounds (must not exceed 1).
I'm going to assume that t_laser_2_d and t_ac_2_d are column vectors and you're end-concatenating them instead of edge-concatena...

5 years ago | 0

Answered
crop 2 images with the same size
Have you looked at imcrop()? Imcrop has an interactive mode and will output the selected RECT parameter when the appropriate sy...

5 years ago | 0

Answered
Question has been removed
This needs to be a test which returns a scalar logical, but t is a vector. while ft>=t G is a scalar, and you're trying t...

5 years ago | 0

| accepted

Answered
How to get the Kernel
It depends entirely upon what you intend to do with convolution/correlation. That page is a basic example intended to demonstra...

5 years ago | 0

| accepted

Answered
Multiple elseif command not working even when condition is true
Beware strict equality tests when using floating point numbers. There are a few things you could try: You could try to clean u...

5 years ago | 1

| accepted

Answered
How to create a surface of revolution from the 2D perimeter?
There are probably plenty of ways to do this, but the basic idea is that you need to know the axis of rotation and you need a fu...

5 years ago | 0

| accepted

Answered
Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters
The very last line end contains an em space (#8195) before the keyword 'end'. Delete that.

5 years ago | 0

| accepted

Answered
how to transpose a row matrix to column matrix
Well you're not having any problem with the transposition. That's right. I guess it's complaining because it expects a vector ...

5 years ago | 0

Answered
How can I display the y-axis at each maximum point
You can find the y-val and location of local maxima using findpeaks() [peaks,loc,w] = findpeaks(mydata); Just doing findpeak...

5 years ago | 0

| accepted

Answered
how to calculate a proportion of a certain area size to the entire area size in an image?
It all depends on how you want to make the masks. You can do it interactively with the color thresholding app, or you can try t...

5 years ago | 0

Answered
Range of values using increments
If you want a specific spacing: x = startnum:stepsize:endnum for example: 0:5:20 gives ans = 0 5 10 15 2...

5 years ago | 0

Answered
How to get rid of elements in two different arrays?
Try this: c = ~isnan(a); % for this, we don't really need find. logical indexing works fine aa = a(c) bb = b(c) gives aa =...

5 years ago | 1

| accepted

Answered
hold on is not working
There's nothing wrong with hold on. Pay attention to the range of the data. The quiver plot has a y range of about [-1 5], whe...

5 years ago | 0

Answered
what is wrong with my code?
Don't need a dot in exp() conc=(1./sqrt(4*pi*D*t)*exp(-1*((x-v*t).^2./4*D))); This is no comment on the correctness of any mat...

5 years ago | 1

Answered
Eliminate Duplicates in a Legend
Because you're looping through the list of datapoints and plotting each one individually, there are not 12 objects, but num_stop...

5 years ago | 0

| accepted

Answered
How do the function find "endpoints" and "branchpoints" work ?
The methods used by bwmorph() involve the use of lookup tables which describe which of all possible 3x3 neighborhoods will resul...

5 years ago | 0

Answered
Would like to create a simple blackjack game but can't assign card values and images to card number.
I should note first off that the conventions you're using to associate the faces with an overarching linear index for the whole ...

5 years ago | 1

| accepted

Answered
For loop over each dimension of a n-dimensional matrix
Something like this: n = 4; myVector = normrnd(0,1,[1,n]); % Get a vector of n random numbers myMatrix = zeros(ones(1,n)*2);...

5 years ago | 0

| accepted

Answered
Trimming the contours on my plot
I was expecting to be able to do: accel(n>nspeed') = NaN; but n=nspeed >> max(n(:,1)-nstall',[],'all') ans = 8.8818e-16 ...

5 years ago | 1

Answered
Creating a 3d Helix Spiral with Surf command
Hey, someone got results! The remaining problems are few: clc; clf p=0.199;% Pitch distance a=0.02999500;% Radius of the hel...

5 years ago | 1

| accepted

Answered
Why are my matric elements showing like this? I want it in decimal form and to a certain amount of decimal places.
The results appear to be symbolic expressions. The rational expressions allow an exact description of the values, whereas float...

5 years ago | 0

| accepted

Answered
Array indices must be positive integers or logical values.
I'm guessing you're trying to do something like this: symbol = {'1','2','3','4','5','6','7','8','9','*','0','#'}; lowFreqGroup...

5 years ago | 0

Load more