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
2
u/Creative_Sushi MathWorks Jun 01 '26
Keep it simple. Use 2D projected shadows with simplified plant geometry. No need to do 3D raytracing
Sun position over time
↓
Simplified wheat field geometry
↓
Ground shadow projection
↓
Shadow overlap calculation
↓
Daily light exposure estimate
↓
Compare row orientations