Answered

How to create a filling/shading between prediction bounds?

I can't completely run your code (s and Asiiimodel are missing), but I think that the black color in your patch result is from t...

How to create a filling/shading between prediction bounds?

I can't completely run your code (s and Asiiimodel are missing), but I think that the black color in your patch result is from t...

ongeveer een jaar ago | 1

| accepted

Answered

FFT function is not functioning.

It seems that you may have tried to install MATLAB on a cloud drive (OneDrive). Or maybe you copied the application files into O...

FFT function is not functioning.

It seems that you may have tried to install MATLAB on a cloud drive (OneDrive). Or maybe you copied the application files into O...

ongeveer een jaar ago | 0

Answered

How do I transform this format 202007011030 (2020 07 01 10:30) into a readabel format?

I can imagine several ways to do this. Here is one. lines = readlines("Fehmarn_Wind_date.txt"); readlines was introduced in R2...

How do I transform this format 202007011030 (2020 07 01 10:30) into a readabel format?

I can imagine several ways to do this. Here is one. lines = readlines("Fehmarn_Wind_date.txt"); readlines was introduced in R2...

ongeveer een jaar ago | 0

Answered

ROI Trace boundaries result

I think some careful coordinate system tweaks will get you there. In many Image Processing Toolbox functions, pixels are treated...

ROI Trace boundaries result

I think some careful coordinate system tweaks will get you there. In many Image Processing Toolbox functions, pixels are treated...

ongeveer een jaar ago | 2

Answered

How is the 2D filter function used in this code?

For each element in A, filter2 essentially "slides" the filter F so that its center lines up with the element in A, and then it ...

How is the 2D filter function used in this code?

For each element in A, filter2 essentially "slides" the filter F so that its center lines up with the element in A, and then it ...

ongeveer een jaar ago | 1

| accepted

Answered

Changing color of pixels around certain pixels

Suppose mask is a logical matrix that indicates which pixels satisfy your condition. (That seems to be the purpose of idx in you...

Changing color of pixels around certain pixels

Suppose mask is a logical matrix that indicates which pixels satisfy your condition. (That seems to be the purpose of idx in you...

ongeveer een jaar ago | 2

| accepted

Answered

Colorbar range inconsistent in high aspect ratio images

Call axis image before you create the colorbar and set its tick labels. When you set tick labels manually, a mode is set so that...

Colorbar range inconsistent in high aspect ratio images

Call axis image before you create the colorbar and set its tick labels. When you set tick labels manually, a mode is set so that...

ongeveer een jaar ago | 0

| accepted

Published

Visualizing out-of-gamut colors in a Lab curve

I was looking today at an old post, "A Lab-based uniform color scale" (09-May-2006). I wanted to provide an update to...

ongeveer een jaar ago

Published

Peaks, Peak Filtering, and Gray-Scale Weighted Centroids

Today, I'm continuing my recent theme of thinking about peak-finding in images. When I wrote the first one (19-Aug-2021), I...

meer dan een jaar ago

Published

Small-Peak Suppression with the H-Maxima Transform

Last time, I introduced the idea of a regional maximum. Today, I want to add a concept that makes the regional maximum more...

meer dan een jaar ago

Published

Local maxima, regional maxima, and the function imregionalmax

A recent algorithm discussion on the Image Processing Toolbox development team reminded me of something I originally wanted...

meer dan een jaar ago

Answered

Can a MATLAB function edit the input?

You'll need your class to subclass handle. See the documentation page "Implementing Linked Lists with Classes" for details.

Can a MATLAB function edit the input?

You'll need your class to subclass handle. See the documentation page "Implementing Linked Lists with Classes" for details.

meer dan een jaar ago | 0

| accepted

Published

Use less meshgrid and repmat

The functions meshgrid and repmat have a long and rich history in MATLAB. Today, I'll try to convince you to use them...

meer dan een jaar ago

Answered

Matlab working very slow on my m1 MacBook Pro

See this answer and follow it for updates related to this problem.

Matlab working very slow on my m1 MacBook Pro

See this answer and follow it for updates related to this problem.

meer dan een jaar ago | 2

Answered

Shouldn't bwconvhull() be idempotent?

Hi Matt, At a general level - and speaking from too much personal experience - expectations about geometrical operations such a...

Shouldn't bwconvhull() be idempotent?

Hi Matt, At a general level - and speaking from too much personal experience - expectations about geometrical operations such a...

meer dan een jaar ago | 2

| accepted

Answered

Issue in plotting binary image boundaries with real axis values

The function bwboundaries returns boundary values in pixel coordinates. You'll need to scale those to world coordinates yourself...

Issue in plotting binary image boundaries with real axis values

The function bwboundaries returns boundary values in pixel coordinates. You'll need to scale those to world coordinates yourself...

meer dan een jaar ago | 0

| accepted

Answered

How to change boundary width in Active Contour Method?

Call visboundaries with an output argument. That output argument will be an hggroup object containing two lines. You can then ma...

How to change boundary width in Active Contour Method?

Call visboundaries with an output argument. That output argument will be an hggroup object containing two lines. You can then ma...

meer dan een jaar ago | 0

| accepted

Published

Use imbinarize to Threshold Gray-Scale Images

Today, I want to convince you to use imbinarize instead of im2bw.Background: I recently saw some data suggesting that many...

meer dan een jaar ago

Published

NaN Sightings

Some of us at MathWorks like to share our "NaN sightings." Here is an example to show what I mean. This is a screenshot of...

meer dan een jaar ago

Published

How to Use a Custom Interpolation Kernel with imresize

Recently, I was talking with MathWorks writer Jessica Bernier about the reference page for the imresize function. Jessica...

meer dan een jaar ago

Published

How to Run Blog Post Code in Your Browser

I have published more than 560 blog posts here since 2006, and I estimate that about 98% of them started out as MATLAB...

meer dan een jaar ago

Published

Plotting a* and b* colors

Today's blog post comes from planning one topic, but then taking a sharp left turn and doing something else completely. I...

bijna 2 jaar ago

Answered

Having graycomatrix rescaling problem

Here is the doc for the NumLevels parameter: Number of gray levels, specified as an integer. For example, if NumLevels is 8, gr...

Having graycomatrix rescaling problem

Here is the doc for the NumLevels parameter: Number of gray levels, specified as an integer. For example, if NumLevels is 8, gr...

bijna 2 jaar ago | 0

| accepted

Answered

How to find the center position under the saturation spot signal

Try converting the image to binary using imbinarize and then using regionprops to compute the centroid. rgb = imread('image.bmp...

How to find the center position under the saturation spot signal

Try converting the image to binary using imbinarize and then using regionprops to compute the centroid. rgb = imread('image.bmp...

bijna 2 jaar ago | 0

| accepted

Answered

How to bold x axis labels

Try setting the TickLabelsInterpreter property to 'tex', like this: plot(1:10) ax = gca; ax.XAxis.TickLabelInterpreter = 'tex...

How to bold x axis labels

Try setting the TickLabelsInterpreter property to 'tex', like this: plot(1:10) ax = gca; ax.XAxis.TickLabelInterpreter = 'tex...

bijna 2 jaar ago | 0

| accepted

Answered

three difference vectors and plots

I have copy-pasted your code below, exactly as entered in your question. It runs and produces the plot with no error. I suggest ...

three difference vectors and plots

I have copy-pasted your code below, exactly as entered in your question. It runs and produces the plot with no error. I suggest ...

bijna 2 jaar ago | 2

Answered

Problem with datetime and daily values

Use a timetable and the retime function. >> T = readtable("data.xlsx"); >> head(T) ans = 8×5 table Date ...

Problem with datetime and daily values

Use a timetable and the retime function. >> T = readtable("data.xlsx"); >> head(T) ans = 8×5 table Date ...

bijna 2 jaar ago | 0

| accepted

Answered

What is the best way to count the occurrences of two table columns together?

In my previous answer, I forgot that grpstats is in the Statistics and Machine Learning Toolbox. Here is an answer using groupsu...

What is the best way to count the occurrences of two table columns together?

In my previous answer, I forgot that grpstats is in the Statistics and Machine Learning Toolbox. Here is an answer using groupsu...

bijna 2 jaar ago | 1

Answered

What is the best way to count the occurrences of two table columns together?

I think grpstats will do what you want: >> grpstats(T,["A" "B"]) ans = 4×3 table A B Grou...

What is the best way to count the occurrences of two table columns together?

I think grpstats will do what you want: >> grpstats(T,["A" "B"]) ans = 4×3 table A B Grou...

bijna 2 jaar ago | 0

Answered

Find peaks not working on my data set

I suspect the issue is with the x-coordinates that you are using to plot the peaks. You are plotting the peaks against the indic...

Find peaks not working on my data set

I suspect the issue is with the x-coordinates that you are using to plot the peaks. You are plotting the peaks against the indic...

bijna 2 jaar ago | 1

| accepted