Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to use matlab to make wave from file.dat

Status
Not open for further replies.

ITpro

Member level 2
Member level 2
Joined
Oct 12, 2006
Messages
48
Helped
8
Reputation
16
Reaction score
3
Trophy points
1,288
Location
G2 house Viet Nam
Activity points
1,781
I want to plot a wave which the its data got from experiment , and data was expressed in a file .dat. How can i use matlab to plot this wave :)
Thanks you :d
 

try file input output options

If you dont know abt them

simply save the data as m file

and use variable at the top of mfile
such that

data.m%M-FILE
I=
[

45 45 45 45 45
45 45 45 45 45
45 45 45 45 45
data ........];

now run
data and it will be automatically loaded in Matrix I
use I accordingly to PLOT the appropriate points.

Regards

Robin
 

    ITpro

    Points: 2
    Helpful Answer Positive Rating
MATLAB has several functions (with many options) for reading ASCII text data or binary data from a file. What is the format of the data in your file? If you don't recognize the format, maybe show us a small sample and we will try to help.

Also try searching MATLAB help for "importing text data" or "reading binary data".

After you successfully read the data into a variable, use the "plot" function to display the data. It also has many options.
 

    ITpro

    Points: 2
    Helpful Answer Positive Rating
Thanks you, i has just understood what i must do :D
I will ask you when i have new problem :)
 
  • Like
Reactions: khishe

    khishe

    Points: 2
    Helpful Answer Positive Rating
Today , i have new problem, i dont know where we can find mathematical symbol in matlab as in mathematica , if it dont exist whether we can define it ? use mathematic symbol in picture format :(
I want to make a program that we can make wave. input is function we define and output is wave . I want to use guide for this problem :d
Can you help me :)
thanks :D
 

Simply type Guide on the Matlab Toolbar

Use appropriate Push Buttons and click on its callback from Property viewer

You will see a M-File being opened
Now type function name or m-file name below the callback function
and it will execute with push buttons.

Regards

Robin
 

    ITpro

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top