to search fractal dimension
You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
0 votes
Share a link to this question

Accepted Answer
0 votes
Share a link to this answer
18 Comments

Share a link to this comment
Share a link to this comment
Share a link to this comment
Share a link to this comment
Share a link to this comment
Share a link to this comment
Share a link to this comment
Share a link to this comment
- the input can be a 3d array with third dimension being of length 3. That is, an rgb array. But a file name is 1 by something by 1, not 1 by something by 3, so rgb2gray is not willing to treat a file name as an rgb array
- the input can be a 2d array, something by 3, representing a color map, such as the jet colormap. The "something" (number of rows) can validly be 1, so rgb2gray is willing to consider treating a file name character vector as if it is a color map with a single row. However, colormap must have exactly 3 columns and your file name has more than 3 characters in it. If your file name happened to have exactly 3 characters including extension then rgb2gray would be willing to process it as a colormap with one row. Except that then after it passed the size check it would fail the check for the colormap being double precision.
Share a link to this comment

Share a link to this comment

Share a link to this comment
Share a link to this comment
Share a link to this comment
More Answers (0)
Categories
Find more on Region and Image Properties in Help Center and File Exchange
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)