Extracting data from a text file.
Mostrar comentarios más antiguos
Please help me with this code. Annotations.text contains the positions for five rectangles. How can I extract the values from text file and use it as position for rectangles.
I=imread('avengers.png');
Data = dlmread('Annotations.txt');
[rows, columns] = size(Data);
imshow(I);
rectangle('Position', 'Curvature',[0,0], 'LineWidth', 2, 'EdgeColor','r');
2 comentarios
Geoff Hayes
el 16 de En. de 2015
Saad - can you provide a sample of the data from the Annotations.text file? We can't offer guidance unless you provide some details concerning the content/format of this file.
Saad Saboor
el 16 de En. de 2015
Respuesta aceptada
Más respuestas (1)
D. Ali
el 27 de Abr. de 2019
0 votos
I have similar question where I need to extarct all MCAP with time they occured on in separat file and plot if possilbe
I attached the file
Categorías
Más información sobre Data Import and Export en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
