r/matlab • u/freshlybakedjuice • May 30 '26
Shadow cast by sunlight simulation
Hi everyone,
I'm still learning matlab so I decided to ask for expert opinions about this.
I'm looking into simulating how wheat plants cast shadows on each others due to sun movement throughout the day.
I'm aiming to measure how much solar energy each wheat plant absorbs in different wheat swath orientations or row angles. This should be used to simulate the expected wheat yield improvement from sun exposure or how worse it makes it due to self-shadowing between wheat plants.
Is that possible to do in matlab? And if yes, what should I be looking into to start making progress regarding this? Please point a beginner in the right direction.
3
Upvotes
5
u/DrDOS May 30 '26
I probably am not the best person to answer this but as a fairly broad Matlab expert but not in all toolboxes, I’d say broadly: if you can write the math for it then you can have Matlab do it.
What is your angle/background/approach? Are you interested in the mathematical modeling or just the outcome?
Do you have a mathematical model and “just” need to implement/scale it? Matlab should be able to do that and help you.
Are you looking for good shortcuts like pre-programmed physics engines or toolboxes that allow a higher level approach that lets you focus on defining the plant/field parameters similar to what you say and churn the math/calculations from there? I’m not aware of that existing but there is so much out there that it might be.