Question

Inequality constraints in least-squares fitting

I would like to perform least-squares fitting with inequality constraints that involve the parameters in both sides, in addition...

3 months ago | 0 answers | 0

Question

Change boxplot outlier shape

Is there a way to change the shape of the outliers when plotting boxplots? The default is the cross. Thanks

11 months ago | 1 answer | 0

Question

Linear and power fitting of original and transformed data not reproducible

I am fitting two variables that seem to have a power relationship (y=a*x^b). If I log-transform both variables, they should have...

1 year ago | 0 answers | 0

Question

Solve system of differential equations with vector input

Assume that I want to solve the system of equations below for u and v. A and B are known numbers (say, 1 and 2 respectively) and...

1 year ago | 1 answer | 0

Question

dicomwrite does not preserve original metadata

Hi, I am reading the dicom info from a DICOM file and writing them to another DICOM file using dicomwrite(image, path, imagein...

1 year ago | 0 answers | 0

Question

MATLAB has encountered a problem when calling a MEX-file

Hi. I am calling a MEX-file (.mexw64) on Windows 10, MATLAB 2018b, and MATLAB is crashing. This is a 'well-developed' code and i...

2 years ago | 0 answers | 0

Question

Plotting curved confidence intervals for linear regression

I am using |coefCI| function to estimate the confidence intervals of a linear model. I can plot this and get linear confidence b...

2 years ago | 1 answer | 2

Question

Nonlinear least-squares fitting of curve described by PDEs

Hi people. I would like to fit a curve described by a system of two 2nd degree partial differential equations (PDEs) using |lsqn...

3 years ago | 1 answer | 0

Question

Skip lsqnonlin run if error

Hi guys. I am using |lsqnonlin| for some fitting, and I am running a loop where I change the initial parameter values to determi...

3 years ago | 1 answer | 0

Question

Remove lines outside plotted circle

Hi people. I am plotting a circle using the rectangle function and then I am plotting several lines in the same plot using th...

4 years ago | 0 answers | 1

Question

Save grayscale multipage TIFF without affecting intensity values

I feel like this has a very simple solution but I can't find it! I load some TIFF stacks of the same size, estimate the mean sta...

5 years ago | 0 answers | 0

Question

Connectivity in binary 3D matrix

I am using bwconncomp to find the largest connected component in a 3D binary matrix (volume). However, it doesn't work the way I...

5 years ago | 1 answer | 1

Question

Abort roipoly in GUIDE

I created a GUI with axes that show the "slices" of a 3D matrix ( _vol_); a slider is used for skipping through the slices. In t...

5 years ago | 1 answer | 0

Question

How to find the "true" perimeter of objects in a binary image?

Say, there is an object consisting of 3 pixels next to each other (■■■). If I calculate the perimeter using sum(sum(bwperi...

5 years ago | 1 answer | 0

Question

Sort clusters using K-means by intensity

Hello everyone. I am using K-means to segment some grayscale images. Unfortunately, the values of the generated clusters are no...

6 years ago | 1 answer | 1

Question

GUI error: Undefined function 'A_GUI' for input arguments of type 'char'.

Ok, I know this might not have been the best thing to do, but I created a GUI (say A_GUI) and accompanying m functions to do som...

6 years ago | 1 answer | 0

Question

Identify similarly named images from different folders

Lets say I have folder A with five images (named: '5', '2', 'pic', '4', 'photo'), and another folder B with two images (named: '...

6 years ago | 1 answer | 0

Question

Distance measurement using edge detection

Hi all, I would like to have an expert opinion on this problem. We use a simple rectangular phantom to perform quality assessme...

6 years ago | 2 answers | 0

Answered

Overlay two images of different type

Thanks for your suggestions guys. After some experimentation, I have eventually found out how to do exactly what I needed (and i...

Overlay two images of different type

Thanks for your suggestions guys. After some experimentation, I have eventually found out how to do exactly what I needed (and i...

6 years ago | 0

| accepted

Question

Call a portion of one function from another one

I wrote a relatively large code for analyzing an image, which contains several smaller functions that are called in a big loop. ...

6 years ago | 1 answer | 0

Question

Overlay two images of different type

I have a uint8 image and another logical image of the same dimensions, containing edges found from the first one. I want to make...

6 years ago | 5 answers | 0

Question

Defining multiple arrays at once?

I am writing a code which requires a few zero arrays of the same dimension for a summation process in a loop, and I was wonderin...

6 years ago | 1 answer | 1

Answered

creating 3d array from images

By the way, what's the best way for including the I=cat(...) into the loop? Thanks.

creating 3d array from images

By the way, what's the best way for including the I=cat(...) into the loop? Thanks.

6 years ago | 0

Answered

creating 3d array from images

Thanks for the help guys! It solved the problem. Yes, C3 was a typo. It really is strange though, because B1 was not defined an...

creating 3d array from images

Thanks for the help guys! It solved the problem. Yes, C3 was a typo. It really is strange though, because B1 was not defined an...

6 years ago | 0

Question

creating 3d array from images

Hello, I am trying to read and copy a series of 5 images into a 3d array, where each image should have a 'thickness' of 13 pixel...

6 years ago | 4 answers | 0