Frage


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 7 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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 7 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 7 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

etwa 7 Jahre vor | 1 Antwort | 1

1

Antwort

Frage


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

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 7 Jahre vor | 3 Antworten | 2

3

Antworten

Frage


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

etwa 7 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

etwa 7 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 7 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 7 Jahre vor | 1 Antwort | 1

1

Antwort

Frage


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

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 7 Jahre vor | 1 Antwort | 1

1

Antwort

Frage


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

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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 7 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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 7 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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 7 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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 7 Jahre vor | 1 Antwort | 0

1

Antwort

Mehr laden