![]() As such, I created one vector for my x values, and replicated them over for as many signals as we have. Therefore, each column of xMat for each signal goes into a single column. Each column of each matrix of xMat, yMat and zMat denote a single trace to be placed in your plot. How plot3 works is that you can either place single vectors in for your x,y,z values, or you can use matrices xMat,yMat,zMat instead. The trick is to form the right matrices so that this goes into plot3 correctly. View(40,40) %// Adjust viewing angle so you can clearly see data Plot3(xMat, yMat, zMat, 'b') %// Make all traces blue YMat = repmat(y, numel(x), 1) %//For plot3 ![]() You'll make these the z values, then for each of these graphs, you'll have different y values, but for each plot they will all be the same, as you'll want to use these to offset each of your graphs accordingly to separate them. You'll have a set of y values that are going to be different, and is dependent on the graph itself. The graphs are:Īs such, you'll have a set of x values that are the same for each of the plots. Let's say I want to place 4 graphs on a single plot in that fashion. With plot3, what you need to do is make the y values for each of your plots z values instead, and if you want to separate the graphs, you need to vary the y values in this 3D plot. You can use plot3 to help you facilitate this kind of plotting.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |