FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > DSP

DSP comp.dsp newsgroup, mailing list

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-13-2007, 11:24 AM
Mehta
Guest
 
Posts: n/a
Default accept a variable

This is my first post on the group and i hope i wont be disappointed.
We have a facility in C language to accept a character without
pressing enter by using "getch".
Is there any alternative of similar sort in matlab i.e i want to
accept a character from a user but does not want the user to press
enter, even then that character will go in the designated variable.
thanks in advance

[email protected]

Reply With Quote
  #2 (permalink)  
Old 02-13-2007, 10:56 PM
glen herrmannsfeldt
Guest
 
Posts: n/a
Default Re: accept a variable

Mehta wrote:

> This is my first post on the group and i hope i wont be disappointed.
> We have a facility in C language to accept a character without
> pressing enter by using "getch".


getch() is not part of the C standard, but is supplied by some systems.

> Is there any alternative of similar sort in matlab i.e i want to
> accept a character from a user but does not want the user to press
> enter, even then that character will go in the designated variable.


Not being standard, I don't believe that matlab would supply such.

If you can call C from matlab, write a C program to call getch()
and return the character to matlab.

-- glen

Reply With Quote
  #3 (permalink)  
Old 02-14-2007, 03:24 PM
Mehta
Guest
 
Posts: n/a
Default Re: accept a variable

On Feb 14, 2:56 am, glen herrmannsfeldt <g...@ugcs.caltech.edu> wrote:
> Mehta wrote:
> > This is my first post on the group and i hope i wont be disappointed.
> > We have a facility in C language toaccepta character without
> > pressing enter by using "getch".

>
> getch() is not part of the C standard, but is supplied by some systems.
>
> > Is there any alternative of similar sort in matlab i.e i want to
> >accepta character from a user but does not want the user to press
> > enter, even then that character will go in the designatedvariable.

>
> Not being standard, I don't believe that matlab would supply such.
>
> If you can call C from matlab, write a C program to call getch()
> and return the character to matlab.
>
> -- glen


basically what i want is to move a robot by programming the parallel
port in matlab.so when i press "W" it should move forward without
pressing enter.similarly for other dorections i dont want to use the
return key.please provide me with the soln.
bye tc

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
wholesale iphone ( west unoin/credit card accept)(www goodsaler com) [email protected] FPGA 1 07-19-2008 03:13 PM
Is it possible to decompose FFT to accept input in sampling time? Jimm Avante DSP 5 01-05-2007 07:39 AM
how to implement variable ports with variable width? weijun VHDL 4 12-19-2005 06:16 PM
Variable 'variable lengths' Taras_96 VHDL 2 05-09-2005 02:58 AM
Convert Character Variable to Integer Variable Brad Smallridge VHDL 2 11-18-2004 02:56 AM


All times are GMT +1. The time now is 01:01 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved