matlab-figure

Plot multiple figures in background

独自空忆成欢 提交于 2020-01-16 01:01:14
问题 I have a MATLAB code that plots multiple figures at the same time. The general trick to achieve the same is to call figure(figHandle) and then make a call to plot , for e.g. figure(h1); plot(...args...); figure(h2); plot(...args...); However, I want to do this plotting without bringing figures into foreground everytime I make a call to figure(figHandle) . All I want to do is to plot multiple figures simultaneously without bringing them into visibility and export them to an excel sheet (I have

How to plot each matrix in a cell with a different color in a 3D plot?

穿精又带淫゛_ 提交于 2020-01-15 11:53:27
问题 Consider a 1x3 cell A : A = { [A1] [A2] [A3] } A = {[1 2 3; 4 5 6; 7 8 9] [6 5 4; 9 8 7] [1 1 1]} where the structure of Ai is such that: A1 = [ 1 2 3 %coordinate (x,y,z) of point 1 4 5 6 %coordinate (x,y,z) of point 2 7 8 9 ] %coordinate (x,y,z) of point 3 A2 = [ 6 5 4 %coordinate (x,y,z) of point 4 9 8 7 ] %coordinate (x,y,z) of point 5 A3 = [ 1 1 1 ] %coordinate (x,y,z) of point 6 How to plot all these points such that we use one color for all the points of A1 , another color for all the

How to plot each matrix in a cell with a different color in a 3D plot?

别等时光非礼了梦想. 提交于 2020-01-15 11:53:26
问题 Consider a 1x3 cell A : A = { [A1] [A2] [A3] } A = {[1 2 3; 4 5 6; 7 8 9] [6 5 4; 9 8 7] [1 1 1]} where the structure of Ai is such that: A1 = [ 1 2 3 %coordinate (x,y,z) of point 1 4 5 6 %coordinate (x,y,z) of point 2 7 8 9 ] %coordinate (x,y,z) of point 3 A2 = [ 6 5 4 %coordinate (x,y,z) of point 4 9 8 7 ] %coordinate (x,y,z) of point 5 A3 = [ 1 1 1 ] %coordinate (x,y,z) of point 6 How to plot all these points such that we use one color for all the points of A1 , another color for all the

How to plot asymnmetric errors with errorbar

血红的双手。 提交于 2020-01-14 06:25:45
问题 I would like to create a plot like pages 15/16: comisef.eu/files/wps031.pdf The example below gets close but only allows for symmetric error bars: http://www.mathworks.com/matlabcentral/fileexchange/35294-matlab-plot-gallery-errorbar-plot/content/html/Errorbar_Plot.html This example has asymmetric errorbars but only when plotted against the bar graph values bar with asymmetric error bounds in Matlab Is it possible to have asymmetric errorbars like in the first example shown but without the

Why this imagesc-imshow with Colormap not Working in Matlab?

 ̄綄美尐妖づ 提交于 2020-01-14 06:11:06
问题 I am considering and expanding the slider here in the answer about To show/join Two Images Simultaneously in Matlab's slider with the capability of changing the colormap by using .mat data in Matlab 2016a. Therefore, I have to use imagesc because there you can alter the colormap. I want to make the images from .mat data containing the variables time , potential and matrix such that I can change colormap/etc Code with 1 imagesc-imshow for k=1:2 % loaded variables from .mat data img=imagesc

Why this imagesc-imshow with Colormap not Working in Matlab?

房东的猫 提交于 2020-01-14 06:09:39
问题 I am considering and expanding the slider here in the answer about To show/join Two Images Simultaneously in Matlab's slider with the capability of changing the colormap by using .mat data in Matlab 2016a. Therefore, I have to use imagesc because there you can alter the colormap. I want to make the images from .mat data containing the variables time , potential and matrix such that I can change colormap/etc Code with 1 imagesc-imshow for k=1:2 % loaded variables from .mat data img=imagesc

Why this imagesc-imshow with Colormap not Working in Matlab?

戏子无情 提交于 2020-01-14 06:09:03
问题 I am considering and expanding the slider here in the answer about To show/join Two Images Simultaneously in Matlab's slider with the capability of changing the colormap by using .mat data in Matlab 2016a. Therefore, I have to use imagesc because there you can alter the colormap. I want to make the images from .mat data containing the variables time , potential and matrix such that I can change colormap/etc Code with 1 imagesc-imshow for k=1:2 % loaded variables from .mat data img=imagesc

How to get point of a figure (using callbacks in GUI) when the point is inside a region that previously has been “patched”?

◇◆丶佛笑我妖孽 提交于 2020-01-14 05:07:26
问题 I am using patch in order to draw inside an ellipse into a figure I have created in gui environment. Normally, I get figures' points (coordinates) by clicking (using callback functions). It works properly when the point I want to grab is not inside an ellipse that I have previously plotted (applying patch ). What should I do after applying patch in order to be able to get a point that is inside some ellipse after I have drawn it? Thanks a lot! 回答1: Here's a way to solve your problem: First we

How to close all neural network diagrams in MATLAB?

流过昼夜 提交于 2020-01-13 19:27:23
问题 I need to show diagrams of some networks, but the problem is that close all doesn't close these windows, so I have several windows to close manually after a few runs. [x,t] = house_dataset; net1 = newff(x, t, [5, 3]); view(net1); net2 = newff(x, t, [7, 5]); view(net2); close all; However if I keep the handle of window, close function will close it: net3 = newff(x, t, [9, 7]); h = view(net3); close(h); But it's not easy for me to collect all those handles. How can I find all those handles

How to close all neural network diagrams in MATLAB?

雨燕双飞 提交于 2020-01-13 19:27:09
问题 I need to show diagrams of some networks, but the problem is that close all doesn't close these windows, so I have several windows to close manually after a few runs. [x,t] = house_dataset; net1 = newff(x, t, [5, 3]); view(net1); net2 = newff(x, t, [7, 5]); view(net2); close all; However if I keep the handle of window, close function will close it: net3 = newff(x, t, [9, 7]); h = view(net3); close(h); But it's not easy for me to collect all those handles. How can I find all those handles