Testing s083116 => Negative N: Error using ==> firesim at 41 M and S is not the same size => Zero N: Error using ==> firesim at 41 M and S is not the same size => Too small alpha: => Too large alpha: Error using ==> firesim at 43 a is outside the interval => Negative K: Error using ==> firesim at 45 last element in T is equal or larger than K => Zero K: Error using ==> firesim at 45 last element in T is equal or larger than K => Negative V: Error using ==> firesim at 47 first element of v is out of range => Too large V: => Negative THETA: Error using ==> firesim at 49 first element of theta is out of range => Too large THETA: => Too small M-element: => Too large M-element: => Illegal size of M: Error using ==> firesim at 41 M and S is not the same size => Illegal size of V: Attempted to access v(3); index out of bounds because numel(v)=2. => Illegal size of THETA: Attempted to access theta(3); index out of bounds because numel(theta)=2. => Illegal entry in T: Error using ==> firesim at 45 last element in T is equal or larger than K => Fire starts in a lake: I 2-normen afviger det beregnede S-array 0 fra vores I 2-normen afviger det beregnede S-array 0 fra vores I 2-normen afviger det beregnede S-array 0 fra vores I 2-normen afviger det beregnede S-array 0.75465 fra vores fireplot gives a visualization of the final state of the forest. If the function is called with only the first 2 parameters the flammability is assumed to be maximal over the whole domain Call: X = fireplot( test_case, S, M) Input Parameters: test_case, number to put in the heading of the image S, current state of the forest M, the flammability of the different sub domains Ouput Parameter: X, image of the state of the forest firesim simulates a fire under different condition. Can be called with three parameters in which case there is no wind and full flammability everywhere. With five parameters in which case there is a constant wind. and with six parameters in which case there is a varying wind. When calling with six parameters v, theta and T should be arrays of the same size. Call: S = firesim( N, alpha, K, v, theta, M, T) Input Parameters: N, forest size alpha, the wood sparsity K, the number of time steps v, amount of wind theta, wind direction M, the flammability of various sub domains T, times in which the wind changes Ouput Parameter: S, the forest state after the last iteration