I need plot more two imagen in the report

조회 수: 4 (최근 30일)
Jandry Raphael Camacho Moncayo
Jandry Raphael Camacho Moncayo 2021년 8월 6일
Hello, I am making an interface, this allows to give a report according to the number of the spinner. When I make a report for a number it gives me the report, but when I make a report for the next number I get an error in the image. The report of the error image is created but it does not allow to open it. Error code:
  댓글 수: 2
Aditya Masurkar
Aditya Masurkar 2021년 8월 6일
편집: Aditya Masurkar 2021년 8월 6일
Hello,
To better understand your issue, could you please provide the following
  • Attach the script that you are using to generate the report
  • Provide a brief summary of what your goal is.
Thanks,
Aditya
Jandry Raphael Camacho Moncayo
Jandry Raphael Camacho Moncayo 2021년 8월 9일
Hi, please, help me
  • Script:
%Reporte
import mlreportgen.report.*
import mlreportgen.dom.*
import mlreportgen.ppt.*
rpt_name = strcat('Reporte Detallado - Tramo', int2str(app.v1));
rpt = Report(rpt_name,'pdf');
Infinicial=load('../mat/Inf_proyecto.mat');
%PRIMERA FORMA DE PLOTEAR
image = mlreportgen.report.FormalImage();
image.Image = app.jpgFilename;
add(chap3,image)
  • I need to make a report when I click on the "PDF" button, it gathers information, among the information there are images and words for different numbers of the spinner. Example, spinner 1: I create a report with an image of spinner 1. Then, spinner 2: I create a report with an image of spinner 2. The problem is that it does not generate a report from the spinner 2 with the image because there is a problem in the image. I want to make a code that reads the image according to the spinner and places it in the report
  • app.jpg.Filename is where the image is saved according to the spinner, this is programmed to be displayed in the image window of the application. Code for it:
%Para el ingreso de datos
load('../mat/preproceso_tiempo_img')
k=app.v1
A='';
app.jpgFilename = sprintf('%i.jpg',Time_trams(k));
fullFileName = fullfile('../fotogramas/', app.jpgFilename);
app.Image.ImageSource=imageData;

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Report Generator에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by