MATLAB Central Discussions - Join the conversation!
主要内容

搜索


Image Analyst
Image Analyst
上次活动时间: 2024-11-7

It would be nice to have a function to shade between two curves. This is a common question asked on Answers and there are some File Exchange entries on it but it's such a common thing to want to do I think there should be a built in function for it. I'm thinking of something like
plotsWithShading(x1, y1, 'r-', x2, y2, 'b-', 'ShadingColor', [.7, .5, .3], 'Opacity', 0.5);
So we can specify the coordinates of the two curves, and the shading color to be used, and its opacity, and it would shade the region between the two curves where the x ranges overlap. Other options should also be accepted, like line with, line style, markers or not, etc. Perhaps all those options could be put into a structure as fields, like
plotsWithShading(x1, y1, options1, x2, y2, options2, 'ShadingColor', [.7, .5, .3], 'Opacity', 0.5);
the shading options could also (optionally) be a structure. I know it can be done with a series of other functions like patch or fill, but it's kind of tricky and not obvious as we can see from the number of questions about how to do it.
Does anyone else think this would be a convenient function to add?
Swimming, diving
16%
Other water-based sport
4%
Gymnastics
20%
Other indoor arena sport
15%
track, field
24%
Other outdoor sport
21%
346 个投票
Hello, everyone! I’m Mark Hayworth, but you might know me better in the community as Image Analyst. I've been using MATLAB since 2006 (18 years). My background spans a rich career as a former senior scientist and inventor at The Procter & Gamble Company (HQ in Cincinnati). I hold both master’s & Ph.D. degrees in optical sciences from the College of Optical Sciences at the University of Arizona, specializing in imaging, image processing, and image analysis. I have 40+ years of military, academic, and industrial experience with image analysis programming and algorithm development. I have experience designing custom light booths and other imaging systems. I also work with color and monochrome imaging, video analysis, thermal, ultraviolet, hyperspectral, CT, MRI, radiography, profilometry, microscopy, NIR, and Raman spectroscopy, etc. on a huge variety of subjects.
I'm thrilled to participate in MATLAB Central's Ask Me Anything (AMA) session, a fantastic platform for knowledge sharing and community engagement. Following Adam Danz’s insightful AMA on staff contributors in the Answers forum, I’d like to discuss topics in the area of image analysis and processing. I invite you to ask me anything related to this field, whether you're seeking recommendations on tools, looking for tips and tricks, my background, or career development advice. Additionally, I'm more than willing to share insights from my experiences in the MATLAB Answers community, File Exchange, and my role as a member of the Community Advisory Board. If you have questions related to your specific images or your custom MATLAB code though, I'll invite you to ask those in the Answers forum. It's a more appropriate forum for those kinds of questions, plus you can get the benefit of other experts offering their solutions in addition to me.
For the coming weeks, I'll be here to engage with your questions and help shed light on any topics you're curious about.
American style football
12%
Soccer / football
39%
baseball
5%
basketball
12%
tennis or golf
7%
rugby, track, cricket, racing, etc.
26%
3712 个投票
cities
15%
beaches, islands, or cruises
22%
rivers, lakes, or mountains
33%
National Parks or historical sites
14%
wherever my family lives
12%
somewhere else
5%
13709 个投票
Yes, in my company that I own
35%
Yes, for someone else (or Univ.)
21%
Only for free, for charities
13%
Only in my charitable foundation
5%
No, I'd just play, travel, & relax
25%
15668 个投票
Image Analyst
Image Analyst
上次活动时间: 2023-8-19

half full.
12%
half empty.
4%
both.
12%
twice as big as it needs to be.
15%
1/2 full of beer, 1/2 full of air.
17%
What glass???
39%
6618 个投票
Beginner, Novice, still learning
50%
Adequate, I can get by easily
34%
Proficient / fluent can do anything
12%
Grand Master, one of the very best
3%
2510 个投票
Word (Crossword , Wordle, etc.)
19%
Numerical (Sudoku, math, etc.)
33%
Brain teaser, logic
27%
Jigsaw, picture, finding/matching
9%
Wooden, metal, or other mechanical
10%
Other type (comment below)
2%
4398 个投票
Yes in MATLAB
18%
Yes but only in some other language
22%
Yes in MATLAB and other language(s)
7%
Not yet but would like to learn how
34%
No & don't foresee any need to yet
19%
4243 个投票
an undergraduate student
41%
in graduate school
28%
in academia (prof, staff, etc.)
11%
in industry or Non-Gov't Org. (NGO)
11%
in government or military
3%
self employed, retired, or hobbyist
6%
7627 个投票
Always or usually. They're fun.
18%
Sometimes, some of them.
7%
Not yet, but probably will some day
25%
Never, and don't plan to.
50%
3937 个投票
Leave your MATLAB computer at home
35%
Bring computer but don't use MATLAB
18%
Bring computer and use MATLAB
11%
Bring phone and use MATLAB online
3%
Use MATLAB on someone else's comput
1%
Vacation? What's that?
32%
18554 个投票
MATLAB (& Mathworks toolboxes) only
50%
Simulink only
2%
Both MATLAB & Simulink
22%
MATLAB & third party toolboxes
6%
Simulink & third party toolboxes
1%
Both ML & SL & 3rd party toolboxes
19%
1043 个投票
Yes, if they have what I want.
41%
No, probably not.
59%
1437 个投票
T-shirt
33%
Cap/hat
11%
Backpack, bag, satchel
19%
Logo sticker
14%
Mouse pad
12%
Other (tool, toy, Rubik's, etc.)
12%
1592 个投票
More advertising or sympos. exhibit
3%
More media mentions (news segments)
3%
Adjust pricing
59%
Sponsor research & publications
11%
Boost university involvement
21%
Something else (list in comments)
4%
1076 个投票
I'd definitely attend/participate.
27%
I would probably attend.
23%
I might or might not attend.
21%
I would not be interested.
29%
1271 个投票
Learn new skill (e.g.Deep Learning)
68%
Complete a Cody Challenge Group
3%
Upload a new File Exchange program
3%
Take online/in-person MATLAB course
11%
Answer an "Answers" forum question
15%
1220 个投票
North America
23%
South America
3%
Europe
40%
Asia, Middle East, India
26%
Africa
4%
Australia, Oceania, or Other
4%
6178 个投票
Go to top of page