How to use the function quiver in app designer?
Show older comments
Hello,
I don't know how to use quiver (2D) in app designer?
Imshow does not work and I want to display a figure with the quiver knowing that I have already created an empty figure in the designer view. Can someone help me?
Elise
Accepted Answer
More Answers (1)
Cris LaPierre
on 17 May 2021
Edited: Cris LaPierre
on 17 May 2021
2 votes
The general adaptation to get it to work in app designer is to explicitly tell the function which axes to plot into. For some functions, like quiver, the target axis is one of the optional inputs.
For others, like imshow, you use use the 'Parent' name-value pair.
imshow('peppers.png','Parent',app.UIAxes);
In app designer, the default axis name is app.UIAxes.
Categories
Find more on Vector Fields in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!