how can export and plot many data in the same figure

how can export and plot many data in the same figure

回答 (3 件)

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 2 月 20 日

0 投票

Use plot function to plot your data. Look at
doc plot
To export your data, you can use
xlswrite % to xls file
csvwrite % to csv file
fprintf % to text file
...

6 件のコメント

mohmad alrwiq
mohmad alrwiq 2014 年 2 月 20 日
sorry i mean import data by code thanks
Azzi Abdelmalek
Azzi Abdelmalek 2014 年 2 月 20 日
There are many methods, depending on the type of your file, and the type of your data (char, numeric), and how they are disposed. Give more details, you can post a sample of your data
mohmad alrwiq
mohmad alrwiq 2014 年 2 月 20 日
well my data are numerical , i have collected them from experimen so i need to compare between them . thanks a lot
Azzi Abdelmalek
Azzi Abdelmalek 2014 年 2 月 20 日
What about your file? is it a text file? an Excell file?
mohmad alrwiq
mohmad alrwiq 2014 年 2 月 20 日
excell file
Azzi Abdelmalek
Azzi Abdelmalek 2014 年 2 月 20 日
v=xlsread('yourfilename.xlsx')
% Your file should be in the current folder, or specify the file name with its folder
mohmad alrwiq
mohmad alrwiq 2014 年 2 月 23 日

0 投票

i mean i have 25 exile file and i need to read them on matlab by one code
Image Analyst
Image Analyst 2014 年 2 月 23 日
編集済み: Image Analyst 2014 年 2 月 23 日

0 投票

You said export, not read. Anyway, see the FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F Inside the loop over all files, put your xlsread() and your analysis or plotting of the data.

この質問は閉じられています。

タグ

質問済み:

2014 年 2 月 20 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by