Turn on thread page Beta
    • Thread Starter
    Offline

    2
    ReputationRep:
    I have to construct a computer program on Matlab to simulate the spread of disease in an orchard. The trees are arranged in a rectangular array. If one tree becomes infected, the disease can spread to its neighbours, such that at the next time t+tau, the neighbouring tree in the same row will be infected with a proability r, and a neighbouring tree in an adjacent row with probability s. Trees may recover with probability q.
    Online

    14
    ReputationRep:
    (Original post by rrosed)
    I have to construct a computer program on Matlab to simulate the spread of disease in an orchard. The trees are arranged in a rectangular array. If one tree becomes infected, the disease can spread to its neighbours, such that at the next time t+tau, the neighbouring tree in the same row will be infected with a proability r, and a neighbouring tree in an adjacent row with probability s. Trees may recover with probability q.
    There's a bit more information that we need here: especially "what is your question?"

    Are you asking about a particular point of Matlab programming or do you need help with the algorithm? If it's the latter, then the strategy of, at every "tick" of the clock:

    (a) keep a list of infected trees.
    (b) calculate a list of trees "at risk" from the infected trees.
    (c) Simulate to determine which trees in (b) actually become infected.
    (d) Simulate to determine which trees in (a) become un-infected.

    But notice two problems: you haven't specified any relative order for (c) and (d) and also you haven't specified what the infection probability is for a tree that is "at risk" from two adjacent (row adjacent and column adjacent) trees.
    • Thread Starter
    Offline

    2
    ReputationRep:
    This is all the information I've been given, so I think it's open for interpretation. I have never done anything like this before, or been given much guidance, but if you would have any advice on how to start the actual coding for a program like this, that would be very useful. Or anywhere that I can do some research to get some help, as I can't find much. Thank you for your time
    Online

    14
    ReputationRep:
    (Original post by rrosed)
    This is all the information I've been given, so I think it's open for interpretation. I have never done anything like this before, or been given much guidance, but if you would have any advice on how to start the actual coding for a program like this, that would be very useful. Or anywhere that I can do some research to get some help, as I can't find much. Thank you for your time
    Are you doing this as part of an educational course? If so, surely you've done some sessions on "Introduction to Matlab" or "Introduction to programming" - goodness, if not, there are plenty of guides online (including the Matlab documentation, which is very good).

    My advice on starting the coding is as I've given in the previous reply. Sorry to be blunt, but you'll need to learn enough programming to understand my hint before you can really make progress.
 
 
 

University open days

  1. University of Bradford
    University-wide Postgraduate
    Wed, 25 Jul '18
  2. University of Buckingham
    Psychology Taster Tutorial Undergraduate
    Wed, 25 Jul '18
  3. Bournemouth University
    Clearing Campus Visit Undergraduate
    Wed, 1 Aug '18
Poll
How are you feeling in the run-up to Results Day 2018?
Useful resources

Make your revision easier

Maths

Maths Forum posting guidelines

Not sure where to post? Read the updated guidelines here

Equations

How to use LaTex

Writing equations the easy way

Student revising

Study habits of A* students

Top tips from students who have already aced their exams

Study Planner

Create your own Study Planner

Never miss a deadline again

Polling station sign

Thinking about a maths degree?

Chat with other maths applicants

Can you help? Study help unanswered threads

Groups associated with this forum:

View associated groups

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Write a reply...
Reply
Hide
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.