Effacer les filtres
Effacer les filtres

How to translate math equations into matlab code

1 vue (au cours des 30 derniers jours)
Naomi Penelope
Naomi Penelope le 2 Sep 2021
Commenté : Image Analyst le 10 Sep 2021
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 commentaires
Steven Lord
Steven Lord le 2 Sep 2021
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
Rik le 10 Sep 2021
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.

Connectez-vous pour commenter.

Réponse acceptée

Image Analyst
Image Analyst le 2 Sep 2021
  1 commentaire
Image Analyst
Image Analyst le 10 Sep 2021
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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by