How to translate math equations into matlab code
2 次查看(过去 30 天)
显示 更早的评论
Create a 256x256 image with 8-bit image intensity values, generate three circles in radii of 100, 50, 25 aligned to the center of the image. Fill intensity value 200 to the inner circle (r<25), intensity value of 100 between the first and second circle (25<r<50), intensity value of 50 between the second and third circle (50<r<100), and intensity value of 10 to the rest part of the image, calculate areas (number of pixels) corresponding to each of the regions. Output the image, its histogram and area in terms of number of pixels. The purpose of this question is to make sure you understand how to “translate” math equations into MatLab codes.
2 个评论
Steven Lord
2021-9-2
This sounds like a homework assignment. If it is, show us the code you've written to try to solve the problem and ask a specific question about where you're having difficulty and we may be able to provide some guidance.
If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the MATLAB Onramp tutorial (https://www.mathworks.com/support/learn-with-matlab-tutorials.html) to quickly learn the essentials of MATLAB.
If you aren't sure where to start because you're not familiar with the mathematics you'll need to solve the problem, I recommend asking your professor and/or teaching assistant for help.
Rik
2021-9-10
I recovered the removed content from the Bing cache (something which anyone can do (the process is similar for Google and Bing)).
If you want to avoid your teacher finding out you attempted to cheat, you shouldn't post on a public website. Just to make sure they will be able to find this page:
Create a 256x256 image with 8-bit image intensity values, generate three circles in radii of 100, 50, 25 aligned to the center of the image. Fill intensity value 200 to the inner circle (r<25), intensity value of 100 between the first and second circle (25<r<50), intensity value of 50 between the second and third circle (50<r<100), and intensity value of 10 to the rest part of the image, calculate areas (number of pixels) corresponding to each of the regions. Output the image, its histogram and area in terms of number of pixels. The purpose of this question is to make sure you understand how to “translate” math equations into MatLab codes.
采纳的回答
Image Analyst
2021-9-2
1 个评论
Image Analyst
2021-9-10
Naomi said "I edited the question to be able to get a guidance on how to approach the problem. I am new at matlab and never my intention was to cheat."
Naomi, if you tag the post as homework, then the others are not supposed to give you full solutions. You can specifically ask them for hints, not full solutions, to drive that point home. Note that in my answer, I just gave you a hint on how to draw a circle and I did not solve it completely for you.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!