Community Profile

photo

DGM


Last seen: Today Active since 2015

Hi, I'm nobody. I don't belong here, but I have nothing better to do. Matlab used to be part of my work. Now it's part of my hobbies. That's pretty sad, really. -- I don't reply to email anymore. If you have a question about my questionable FEX submissions, leave a comment on the FEX page and I'll get the notification. Alternatively, ask a question on the forum and @DGM me so I'll get notified.

Statistics

All
  • Most Accepted 2022
  • Ace
  • Solver
  • Personal Best Downloads Level 4
  • GitHub Submissions Level 3
  • Thankful Level 4
  • 12 Month Streak
  • Most Accepted 2021
  • 5-Star Galaxy Level 4
  • Revival Level 3
  • Knowledgeable Level 5
  • Explorer

View badges

Content Feed

Answered
Find boundary pixel coordinates nearest to a line
Given the illustration and description, it's not quite clear if we're trying to draw a line to the first intersection or not. I...

12 hours ago | 0

Answered
Overlay transparent image on top of current figure
Try this: LeftPosterior = rectangle('Position',[0 0 1 1],'FaceColor',[0 .5 .5]); hold on RightPosterior = rectangle('Position...

17 hours ago | 0

| accepted

Answered
how to transfer output in new matrix
Here's my guess speed = [0 0 0 2 2 2 3 3 3 4 4 4 5 5 6 6 6 7 7 7 6 6 5 5 5 4 4 4 5 5 5 3 3 2 2 2 1 1 1 0 0 0]; % locations o...

21 hours ago | 0

Answered
Why does imnoise add different noise than randn?
You're seeing two things. First, your image is improperly-scaled for its class (1-256 for class 'double'), but the image you'...

1 day ago | 0

| accepted

Answered
How to detect contents of a beaker in an image
Here's an initial attempt. How well this works really depends on how vague the gap between the blobs can be. As Walter mention...

1 day ago | 1

Answered
How to add gray bands in a plot
Here's my interpretation. I'm assuming you're using datetime for the xdata, so % some fake data t1 = datetime(2013,11,1,8,0,0...

2 days ago | 3

Answered
Choosing the centroid of an specific shape
Here. I tried to clean up the screenshot so that it's at least usable for a demo. Instead of using imadjust(), and trying to i...

2 days ago | 0

| accepted

Answered
Converting a set of audio signals to images and saving them.
I don't know what st() is, but I have to assume it's a function -- possibly an STFT tool? If so, then it won't be a function an...

3 days ago | 0

Answered
Extracting images embedded in Excel Files
If all you need is to extract images, you can do that directly. The attached xlsx file contains two embedded PNGs and a JPG. O...

3 days ago | 1

Answered
Error using actual and detected edge image sizes must be same error.
Your inputs are JPG. Most JPGs will not be single-channel. On one side of that equality test, this is what happens: rgbpict =...

5 days ago | 0

Answered
How do I measure distances in an Image
You say you want the maximum distance along the x and y axis, but what you drew is something else. So which do you want? You c...

5 days ago | 0

Answered
Conversion of (129x7 complex double) to an Image
Are you sure you don't want to just save a graphical representation (i.e. a plot)? % some fake test signal fs = 1000; t = 0:1...

5 days ago | 1

Answered
How to sort rows of a 2D array based on another array
Here's one example. I'm sure there are others. A = [1 2 3;2 1 3;3 2 1]; B = [0 1 2;0 1 2;0 1 2]; % get sorting and size in...

6 days ago | 0

| accepted

Answered
How to discretize the color in contour bar at smallest possible range?
Since you didn't specify the levels or even the number of levels in the call to contourf(), there is no reason to suspect that t...

6 days ago | 0

Answered
Error in imnoise>ParseInputs
We know that imread() will only return an array of class 'logical', 'uint8', or 'uint16' when given a PNG image. Since only a s...

6 days ago | 0

Answered
i have an ultrasound image i want to remove the labeles on the image by using y=mx+b line to convert the pixeles above the line to black.how can i do it?
There are a couple things going on here. filename = '181.png'; img = imread(filename); img = im2gray(img); % need to work on ...

7 days ago | 0

| accepted

Answered
Could someone help me to import individual jpeg images embedded in a gif image into each slide in a PowerPoint file? I use exportToPPTX.
As far as I know, the bug mentioned in the first link still exists, and the only solutions are those described at the end of the...

7 days ago | 2

Answered
color all pixels in an image black except white pixels
Presuming that "white" is [255 255 255] within the context of a uint8 RGB image: inpict = imread('https://www.mathworks.com/mat...

8 days ago | 0

| accepted

Answered
How to display a message as flashing and in my desired color and font size?
If you want it in the command window, then your options are severely limited, and the rate at which you can "flash" will be limi...

8 days ago | 0

| accepted

Answered
How do I extract table on a web page into a MATLAB table?
Everything on that page is dynamic content generated by scripts. That information isn't part of the page source. Unless they h...

8 days ago | 0

| accepted

Answered
How to plot This graph in matlab?
1.00E-2 is shorthand for scientific notation 1.00*10^-2. % define x x = 1.0:0.05:3.0; % YData as row vectors in a matrix y...

8 days ago | 0

| accepted

Answered
oblate and prolate figs
See ellipsoid() r = [1 1 2]; % radius [x y z] c = [0 0 0]; % center [x y z] npoints = 30; % if no output arguments are req...

13 days ago | 0

| accepted

Answered
issue with colormap (colorcube)
From the R2019b release notes: Predefined colormaps have 256 colors by default Behavior change The predefined colormaps, such...

17 days ago | 2

Answered
find Center pixel to maximum distance
I'm going to ignore how to calculate the distance array, and just focus on the task that the tagging implies. If the goal is to...

18 days ago | 0

Answered
I tried to generate a sequence with a specific interval, but the output skips some intervals.
I missed the comparison. You're dealing with floating-point numbers. You can expect exact equality tests to fail due to roun...

18 days ago | 1

| accepted

Answered
How can I add timer to a stack of image and play it as a video with timer going on in the corner of it?
See this thread https://www.mathworks.com/matlabcentral/answers/101413-how-can-i-add-text-to-an-image-and-make-the-text-become-...

18 days ago | 1

| accepted

Answered
What is the range of L (lightness) when plotting HSL bi-cone colour space?
In most implementations , L will be from 0 to 1, so yeah if you wanted to visualize it at uniform scale, it would be a squat bic...

19 days ago | 0

| accepted

Answered
Size doesn't match Value?
You're finding the size of the char vector, not the variable. myvariable = rand(100,1); size(myvariable) % this is a 100x1 n...

20 days ago | 2

| accepted

Answered
How to add a portion of image to another image
Hmm. That's a very good question. How would one accomplish an ill-defined image composition? Well, the answer is easy. You c...

20 days ago | 0

Answered
Removing neighbours that are too close from eachother in a vector
Here's my guess. The behavior is dependent on whether you can actively accept or reject entries. If it's assumed that values c...

21 days ago | 0

Load more