MATLAB Help Center
Specify image source in Model Advisor output
setImageSource(image,source)
setImageSource(image,source) sets the source of the image specified by image to the file or URL specified by source.
image
source
example
collapse all
Create an image object and set the source location of the image.
Create a ModelAdvisor.Result object to store the check output. This object is returned to the Model Advisor and displayed in the result.
ModelAdvisor.Result
result = ModelAdvisor.ResultDetail;
Create a ModelAdvisor.Image object.
ModelAdvisor.Image
image = ModelAdvisor.Image;
Assign a file to the image source.
setImageSource(image,'exampleImage1.jpg');
Set the information to be displayed in the Model Advisor output.
result.Information = "Demonstration image:";
Image displayed in the Model Advisor output, specified as a ModelAdvisor.Image object.
Image source, specified as a string scalar or character vector containing a web address, URL, or file path.
Example: 'exampleImage1.jpg'
'exampleImage1.jpg'
Introduced in R2006b
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
Asia Pacific
Contact your local office