Convert all my txt file to graph and save it as image file
4 views (last 30 days)
Show older comments
Hi all, I am unable to convert all my txt files from graphs to image. I am able to plot the graph but i am unsure how to save it as img for matlab. Please help! Thanks in advance.
These are the codes for me to convert my dataset to graph
filename = 't-1.txt';
deliminator = ' ';
scope_data = dlmread(filename, deliminator, 1, 0);
resistance = scope_data(:,1);
reactance = scope_data(:,2);
figure(1)
hold on
grid on
grid minor
plot (resistance, reactance, 'blue')
title ('Eddy Current Testing')
xlabel ('Resistance')
ylabel ('Reactance')
0 Comments
Answers (1)
See Also
Categories
Find more on Convert Image Type in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!