Just imagine you plot several dots, circles, lines in a figure. Afterwards another m file should use this plot as an input to do e.g. thresholding. I'm aware of the print command but I don't want the plot to be stored as file. I would prefer to store it in a matrix (x_dim,y_dim,3). Any ideas?
相关问题
- Extract matrix elements using a vector of column i
- Reshape matrix by rows
- Plotting multiple columns with ggplot2 [duplicate]
- Non-Conformable Arrays when Doing Matrix Multiplic
- How do you get R's null and residual deviance
相关文章
- Numpy matrix of coordinates
- How to plot smoother curves in R
- How to add clipboard support to Matplotlib figures
- Adding a legend to a matplotlib boxplot with multi
- How do I append metadata to an image in Matlab?
- C++: How to use unnamed template parameters in cla
- How to compute the power of a matrix in R [duplica
- How can I write-protect the Matlab language?
You should check out the functions
getframe
andframe2im
to convert a figure or axes object to an image matrix.How about save to an image? You can use
getframe
to get a frame object F, where F.cdata contains the RGB values. Remember to use'border', 'tight'
option to avoid capturing the borders.