主要内容

Results for


Image Analyst
Image Analyst
Last activity 5 分钟 前

Christmas season is underway at my house:
(Sorry - the ornament is not available at the MathWorks Merch Shop -- I made it with a 3-D printer.)
Image Analyst
Image Analyst
Last activity 2024-11-7,18:43

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?
Image Analyst
Image Analyst
Last activity 2024-8-12

Imagine that the earth is a perfect sphere with a radius of 6371000 meters and there is a rope tightly wrapped around the equator. With one line of MATLAB code determine how much the rope will be lifted above the surface if you cut it and insert a 1 meter segment of rope into it (and then expand the whole rope back into a circle again, of course).
In one line of MATLAB code, compute how far you can see at the seashore. In otherwords, how far away is the horizon from your eyes? You can assume you know your height and the diameter or radius of the earth.
Image Analyst
Image Analyst
Last activity 2023-10-31

Just in time for Halloween.
Image Analyst
Image Analyst
Last activity 2023-11-10

Wait for Walter, the rest of us are mere users.
Image Analyst
Image Analyst
Last activity 2023-10-16

MATLAB Training
Image Analyst
Image Analyst
Last activity 2023-10-16

MATLAB Training
Image Analyst
Image Analyst
Last activity 2023-10-16

Embarassed by Walter Roberson
Image Analyst
Image Analyst
Last activity 2023-10-16

Image Analyst
Image Analyst
Last activity 2023-10-16

MATLAB Road in theaters May 15, 2024.
Image Analyst
Image Analyst
Last activity 2023-10-16

(From "The Exorcist" movie poster)
Albert Einstein uses MATLAB