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

etwa 5 Jahre ago | 2 answers | 0

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

etwa 5 Jahre ago | 2 answers | 0

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

mehr als 5 Jahre ago | 1 answer | 0

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

mehr als 5 Jahre ago | 1 answer | 0

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

mehr als 5 Jahre ago | 1 answer | 0

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

mehr als 5 Jahre ago | 0 answers | 0

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

mehr als 5 Jahre ago | 1 answer | 1

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

mehr als 5 Jahre ago | 1 answer | 0

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

mehr als 5 Jahre ago | 3 answers | 1

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

mehr als 5 Jahre ago | 0 answers | 0

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

mehr als 5 Jahre ago | 0 answers | 0

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

mehr als 5 Jahre ago | 1 answer | 0

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

mehr als 5 Jahre ago | 1 answer | 0

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

mehr als 5 Jahre ago | 2 answers | 0

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

mehr als 5 Jahre ago | 1 answer | 0

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

mehr als 5 Jahre ago | 1 answer | 0

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

mehr als 5 Jahre ago | 1 answer | 1

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

mehr als 5 Jahre ago | 1 answer | 0

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

mehr als 5 Jahre ago | 1 answer | 0

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

mehr als 5 Jahre ago | 1 answer | 1

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

mehr als 5 Jahre ago | 1 answer | 0

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

mehr als 5 Jahre ago | 1 answer | 0

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

mehr als 5 Jahre ago | 1 answer | 0

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

mehr als 5 Jahre ago | 1 answer | 0

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

mehr als 5 Jahre ago | 1 answer | 0

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

mehr als 5 Jahre ago | 2 answers | 0

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

mehr als 5 Jahre ago | 2 answers | 0

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

mehr als 5 Jahre ago | 2 answers | 0

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 ?

mehr als 5 Jahre ago | 1 answer | 0

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

mehr als 5 Jahre ago | 1 answer | 0