How to use external data as input data for QSPK in Matlab?

Status
Not open for further replies.

DimaA

Member level 3
Joined
Jan 19, 2004
Messages
66
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
563
Matlab question

I'm simulating a QPSK receiver in Matlab. How can I use extrenal data file to use as a data input to my receiver?
 

Re: Matlab question

If you are using the m-file editor, try making a block of the source code of your QPSK, then in the toolbox of simulink, look for a block with a name like "from file" or something like that, I don't use matlab a long time ago, but i'm sure I used that sometime.
 

Re: Matlab question

DimaA said:
I'm simulating a QPSK receiver in Matlab. How can I use extrenal data file to use as a data input to my receiver?

See the picture below:

variable1 is the matrix you have in workspace, but if you want to use data from a file than you can use second icon. Initially shows as untitled.mat for filename.

Picture is from Matlab 6.1 Simulink.

Now if you want to implement the receiver without simulink than use load filename data.
 

Matlab question

open the data file and read data one by one!
 

Re: Matlab question

use the help files ..or else leave ur email id..i will mail u some files regardong ur probles
 

Re: Matlab question

What kind of data file will you read as an input?

You can use some funciton like fopen, fscanf which are very like those in C
 

Re: Matlab question

u can use
help iofun;
to find the suitable function to import ur data file according to its type
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…