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')
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!