Borrar filtros
Borrar filtros

How to export the result as a picture

2 visualizaciones (últimos 30 días)
dcydhb dcydhb
dcydhb dcydhb el 3 de Abr. de 2019
Comentada: dcydhb dcydhb el 5 de Abr. de 2019
How to export the result as a picture.
I use the
biograph
function that comes with matlab to get the roadmap, but I can't copy it. I can't export it to a picture. how do I copy it to the clipboard or export it to a picture file?
codes are as this
clc;
clear all;
close all;
close all hidden
W = [.41 .99 .51 .32 .15 .45 .38 .32 .36 .29 .21];
DG = sparse([6 1 2 2 3 4 4 5 5 6 1],[2 6 3 5 4 1 6 3 4 3 5],W)
h = view(biograph(DG,[],'ShowWeights','on'))
export(h,'h.png')

Respuesta aceptada

KSSV
KSSV el 3 de Abr. de 2019
Editada: KSSV el 3 de Abr. de 2019
close all;
close all hidden
W = [.41 .99 .51 .32 .15 .45 .38 .32 .36 .29 .21];
DG = sparse([6 1 2 2 3 4 4 5 5 6 1],[2 6 3 5 4 1 6 3 4 3 5],W)
h = biograph(DG,[],'ShowWeights','on')
% export(h,'h.png')
g = biograph.bggui(h);
f = figure;
copyobj(g.biograph.hgAxes,f);
f = get(g.biograph.hgAxes, 'Parent');
print(f, '-djpeg', 'test.jpg')

Más respuestas (0)

Categorías

Más información sobre Environment and Settings en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by