Тёмный

1_3a How to read data from text files in MATLAB 

Exquisite Square
Подписаться 358
Просмотров 31 тыс.
50% 1

Опубликовано:

 

21 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 19   
@motsekimakhubo6557
@motsekimakhubo6557 2 года назад
Most useful matlab video I've ever came across sadly this channel only has this matlab tutorial
@thesila2000
@thesila2000 2 года назад
your sound kills me, your knowledge enlightens me, thank you
@iamnobody8363
@iamnobody8363 2 года назад
I have a question, for headliners, does MATLAB view spaces as Headings too for example line 1 is first heading then line 2 is a Space and Line 3 is another Heading
@afrinova
@afrinova 2 года назад
Yes, it does. So, in your question, it will be 3 headerlines
@iamnobody8363
@iamnobody8363 2 года назад
What if you have more than one file to open, can you put it all in the (fid = fopen()
@afrinova
@afrinova 2 года назад
Maybe using a loop (if they are many files)? Or just open them separately (using different fids, e.g., fid1, fid2,... etc) if they are just two or few files
@eslamahmed7022
@eslamahmed7022 3 года назад
Great tutorial and informative ❤️
@gio-yj3en
@gio-yj3en 2 года назад
How would you create a file of your own, so it can be used in MATLAB?
@exquisitesquare8306
@exquisitesquare8306 2 года назад
see this www.mathworks.com/help/matlab/ref/fprintf.html
@rafaelpeluzio7342
@rafaelpeluzio7342 3 года назад
weirdly useful video.
@sunitisingh6136
@sunitisingh6136 3 года назад
Hello ...how remove string line that are written on the top of data???
@afrinova
@afrinova 3 года назад
You can do this: a = textscan(fid, '%f %f', 'headerlines', n); where n is the number of string lines written on top of the data you want to remove/skip. You can replace n with 1 if the string line is only 1, or 2 if there are 2 string lines,.... and so on
@sunitisingh6136
@sunitisingh6136 3 года назад
@@afrinova thanks
@benbenameur8429
@benbenameur8429 2 года назад
Hello i want save data in txt file each iteration i mean save array cell each iteration can you help me ?
@usaball9193
@usaball9193 2 года назад
Hi, How do I access only the first 2 bits of data ?
@sudmudmud357
@sudmudmud357 2 года назад
What a fantastic explanation 👍
@andresfeliperamirezgaviria8976
@andresfeliperamirezgaviria8976 3 года назад
How can i read a matrix separated with tabulator?
@afrinova
@afrinova 3 года назад
Andres, it is exactly the same way; just do the %f (in the textscan function) to be the same number of times as the number of columns in the matrix
@ylemkiwi
@ylemkiwi 2 года назад
THANK YOU!
Далее
Lesson 8.3: Text Files
12:18
Просмотров 116 тыс.
13.4 Export Matrix from MATLAB to Excel and Text files
15:52
Matlab 20: File Operations - Read and Write
10:10
Просмотров 15 тыс.
MATLAB - fgetl and fgets for reading a line of text
7:23
textscan matlab
6:01
Просмотров 32 тыс.
MATLAB + ChatGPT = MatGPT 🤯
10:09
Просмотров 34 тыс.
Import Data and Analyze with MATLAB
9:19
Просмотров 682 тыс.