Set position of image in matlab code PDF

조회 수: 5 (최근 30일)
Mia Vesterager
Mia Vesterager 2023년 1월 6일
답변: Sulaymon Eshkabilov 2023년 1월 7일
Hello,
I am very happy with using matlab, I use it for solving exercises which I then convert to PDF for easy access. However, when i use the command imshow("picture.jpg") a specific place in the Matlab code, the PDF always place it at the bottom of the section instead of where the code is written. Is there a way to set the position of an image in a PDF doc?
Thank you.
  댓글 수: 3
Mia Vesterager
Mia Vesterager 2023년 1월 6일
For example, when I review my PDF i would like my image to show up at the same position in the text/code as where i placed it, but right now it shows up in the bottom of all my text/code, meaning i have to go down to see the image and then back to the part of the text where it is relevant.
%% Exercise 2
% in a wye-wye connection, find the line currents, line voltages and
% the load voltages
clear all
close all
clc
imshow("lecture6_ex2.jpg")
%Because it is a 3-phase balanced circuit, we can simply make the
%calculations based on a single phase and then recover to 3-phase by using
%the phase relationship.
%The load voltages (in this case the same as phase voltages, because the
% total load of the single phase is included from point A to point N and
% the same for the rest)
V_AN=220*exp(j*deg2rad(0)); %V
V_BN=220*exp(j*deg2rad(-120)); %V
V_CN=220*exp(j*deg2rad(120)); %V
Mia Vesterager
Mia Vesterager 2023년 1월 6일
Unfortunalty, i have been seaching a lot on the internet but have not found a solution

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

답변 (1개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2023년 1월 7일
This can be achieved using %%, e.g.:
% Image is shown here after the command imshow()
imshow("MY_image.jpg")
%% Simulation results
A = magic(3);
B=A.^3
fprintf('Time: %13c \n', now)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by