Convert all my txt file to graph and save it as image file

2 次查看(过去 30 天)
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')

回答(1 个)

Robert U
Robert U 2019-11-27
Hi kenneth lee,
have a look at these two built-in functions:
Kind regards,
Robert

类别

Help CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by