How can i update timer Registers from Simulink

I WANT TO TRANSFORM THE CODE INTO SIMULINK BLOCKS. HOW CAN I TELL ARDUINO TO UPDATE YOUR VALUES ACCORDING TO PRGRAME.
FOREXAMPLE

//update ocr registers with the value
TCCR1B=0x18;
if((PINB&0x02)!=00) TCCR1C=0x80;
if((PINB&0x04)!=00) TCCR1C=0x40;
TCNT1=0;
OCR1B = j;
if(j==0) TCCR1C=0x40;
TCCR1B=0x19;

don't cross-post

answered at his other post Arduino Simulink Interface - Interfacing w/ Software on the Computer - Arduino Forum

.