No BSD License  

Highlights from
image processing

1.0

1.0 | 1 rating Rate this file 3 Downloads (last 30 days) File Size: 663 Bytes File ID: #23305
image thumbnail

image processing

by sachin shivhare

 

16 Mar 2009

convert c code to matlab code

| Watch this File

File Information
Description

c code to matlab conversion. for use in stepper motor

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
18 Mar 2009 Wolfgang Schwanghart

This is what you find in the downloaded txt-file

**********************************************************
%include<stdio.h>
 %include<conio.h>
 define comx 0x378

int transmit(int *t)
{
    int c,cl1,ch1; %configure comx
    outportb(comx + 1,0x00); %disable UART onterrupts
    outportb(comx + 3,0x80); %to write into DLAB
    outportb(comx + 0,0x0c); %write divisor latch low byte 9600 baud
    outportb(comx + 1,0x00); %write divisor latch high byte
    outportb(comx + 3,0x03); %set LCR 8 bit,1 stop bit,no parity
    outportb(comx + 2,0xc7); %set FCR FIFO control register
    outportb(comx + 4,0x0b); %set MCR turn on DTR,RTS,OUT2
    
  }

  clrscr();
  c=*t;
  
  outportb(comx + 0,c); %sent to comx
  **********************************************************

I have no idea of what this function does. But it certainly doesn't have anything to do with image processing or c code to matlab conversion.

Please remove.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
stepper motor Cristina McIntire 17 Mar 2009 14:38:16
image sachin shivhare 17 Mar 2009 14:38:25
image Hemant 27 Apr 2009 02:35:46
stepper motor Hemant 27 Apr 2009 02:35:57

Contact us at files@mathworks.com