Question


how to plot connected points ?
How do i plot(x,y) such that the points are connected to each other instead of from the origin ? <</matlabcentral/answers/upl...

7 years ago | 2 answers | 0

2

answers

Question


convert image and linear stretch
If i have an array of type double, how can i convert it to uint8 and linearly stretch all the values such that min = 0 and max =...

7 years ago | 2 answers | 0

2

answers

Question


least squares fit with standard deviation
is there a function in matlab that can find the least squares fit of my data then plot the line with the standard deviation like...

8 years ago | 1 answer | 0

1

answer

Question


Failure in initial user-supplied objective function evaluation. LSQCURVEFIT cannot continue.
My code below generates the following error. I have been stuck at it and Im not sure why. It works for an exponential version. ...

8 years ago | 1 answer | 0

1

answer

Question


lsqcurvefit error when fitting polynomial but okay for exponential
I am trying to fit an exponential and a polynomial function using lsqcurvefit (must be lsqcurvefit). The code below works. ...

8 years ago | 1 answer | 0

1

answer

Question


lsqcurvefit for exponential regression - objective function
I read online about fitting an exponential curve to my data via least squares and I have understood it. http://mathworld.wolfram...

8 years ago | 0 answers | 0

0

answers

Question


subplot change size of xtick ytick
How do i change the size of my xtick ytick in subplot ? This is a part of my code set(gca, 'XTick', 0.5:0.1:1, 'YTick',...

8 years ago | 1 answer | 1

1

answer

Question


Vertical Title in subplot
How can I add a vertical title in subplot like in the image below ? I want the title Car at the left side of the plot to be bigg...

8 years ago | 1 answer | 0

1

answer

Question


How to add newline to x label of a plot ?
How do I add a new-line to the x label of a plot ? Like i want it to be Label A \newline Label B

8 years ago | 3 answers | 2

3

answers

Question


Matlab watershed -> agglomerative clustering -> update boundaries
When I run watershed and regionprops I get boundaries in an image. Then I run agglomerative clustering to cluster these watershe...

8 years ago | 0 answers | 0

0

answers

Question


agglomerative clustering - cluster update
Do the values of each cluster get updated after each iteration ? If yes, how is it updated ? Mean ? What if I have a custom func...

8 years ago | 0 answers | 0

0

answers

Question


logical indexing 3d array with 2d array
how can i set the values of my matrix to a certain rgb value given a mask ? image_a; %(640x480x3) uint8 mask; %(6...

8 years ago | 1 answer | 0

1

answer

Question


possible to use logical indexing with an array argument ?
is there a way I can convert this code for i=1:15653 label == i end to a vectorized one ? i=1:15653; ...

8 years ago | 1 answer | 0

1

answer

Question


How to assign rgb values to multiple row,col of a matrix ?
for i=1:2%max(label(:)) [rows, cols] = find(label == i); image(rows,cols,:) = [0,0,0]; end but I get the e...

8 years ago | 2 answers | 0

2

answers

Question


How to merge cell (100 x 3) of arrays into a single cell (100 x 1) by concatenating the arrays ?
I have a cell 100 x 3 where and cells(1,:) each contain an array 35x1. How do I convert this to a cell of 100 x 1 where the firs...

8 years ago | 1 answer | 0

1

answer

Question


How to convert 2D array to a comma separated list of array
regions = regionprops(label, image(:,:,1), 'Centroid'); regions(:).Centroid gives me a comma-separated-lists of vectors...

8 years ago | 1 answer | 0

1

answer

Question


How to operate on comma separated lists ?
How do I work with comma separated lists ? Below I have 3 structures with member MeanIntensity. I want to concatenate all MeanIn...

8 years ago | 1 answer | 1

1

answer

Question


How to use anonymous function in linkage ?
I am trying to use my own function in linkage. <https://www.mathworks.com/help/stats/linkage.html> I completely have no idea ...

8 years ago | 1 answer | 0

1

answer

Question


Vertically concatenate a 2 column comma separated list
I have a structure of size 100 extracted from regionprops called *stat*. Id like to extract the column of data that stores the c...

8 years ago | 1 answer | 0

1

answer

Question


how to index 3D array with 2D array ?
i have a colored image 100x100x3 and a logical matrix 100x100. how do i keep the values of those at which the logical matrix is ...

8 years ago | 1 answer | 1

1

answer

Question


get path to all files in a folder of images
how do i get the path to my image in a folder ? % Directory directory = 'C:\Datasets\nyu\train\'; % Filenames ...

8 years ago | 1 answer | 0

1

answer

Question


How to get equations of plots from this image ?
How to get equation of each plot from this image ? I want to replot it. Any app that i can use ? <</matlabcentral/answers/upl...

8 years ago | 1 answer | 0

1

answer

Question


How to extract a vector from a vector given a reference vector ?
I have a main vector = [1 1 1 1 2 3 4 5 7 8 8 8 2 2 1 1 1 .....] and a reference vector = [1 3 4 7 9 1312] how do i extract the...

8 years ago | 1 answer | 0

1

answer

Question


Plot curve that is 1 standard deviation away from best fit curve ?
I have a plot that is quite noisy. I am able to fit it with a straight line using the poly fit line method with bisquare weights...

8 years ago | 1 answer | 0

1

answer

Question


How to use least squares fit with bisquare weights
I am trying to fit a line/curve to a plot that looks quite noisy. I think it looks like a straight line or a very light curve. I...

8 years ago | 1 answer | 0

1

answer

Question


make all variables in function stored/global/accesible
I have a function that has an error. It takes 10 minutes to reach the error in a loop. I dont know how to debug it unless I can ...

8 years ago | 2 answers | 0

2

answers

Question


How to pad all numbers in array ?
How can I pad a vector of number with zeros ? I am able to do it with a for loop but I was wondering if there is a neater way to...

8 years ago | 2 answers | 0

2

answers

Question


how to use find to cell cell indexing
why does this not work ? find(grnd_truth_cell{:,1} == 6) I want to find all of grnd_truth_cell whose 1st column at every...

8 years ago | 2 answers | 0

2

answers

Question


How to read char '00013' as 13 or '00717' as 717 ? How to skip zero pad ?
How do i read a zero padded number into an integer ?

8 years ago | 1 answer | 0

1

answer

Question


modify table value = In an assignment A(:) = B, the number of elements in A and B must be the same.
I get this error when trying to pad the values of one column of my table with zeros. In an assignment A(:) = B, the number ...

8 years ago | 1 answer | 0

1

answer

Load more