in Education by
I have a 2D space in which a function value is defined (you can think of it as a manifold). Now I plotted the function value using contourf and changed the colormap to something softer than jet. So far it looks quite good. Now I want to draw a line representing the state over time in my space. That is also possible using the the plot command. But I want some more improvements: There is an additional state that is hidden for now (value 0...50). I would like the line color to change according to this hidden state. So in a sense to apply a separate colormap to the line plotted by plot like for example in a waterfall plot. Is this (or something similar) possible using matlab? Thanks JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
If you want to either use interpolated shading or have the colours change with the colour map, then you want to plot your data as a mesh and set the edgecolor property appropriately. Note that in order to plot it as a mesh, then you will need to duplicate it so that it has a size of at least 2 in each direction. h = mesh([X(:) X(:)], [Y(:) Y(:)], [Z(:) Z(:)], [C(:) C(:)], ... 'EdgeColor', 'interp', 'FaceColor', 'none'); You may also want to look at the MeshStyle property, if you want to plot multiple lines simultaneously. This solution is also much nicer than the one used in cline because it only creates one graphics object, rather than n.

Related questions

0 votes
    Which line numbers are further away from the plot? (a) Lower (b) Higher (c) Medium (d) Simple This ... Networks of R Programming Select the correct answer from above options...
asked Feb 10, 2022 in Education by JackTerrance
0 votes
    Write the HTML code to get the line with 5 as thickness, length 50% and color as red Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    In which of the following color gradient types, the colors are arranged in a straight line?...
asked Dec 3, 2020 in Technology by Editorial Staff
0 votes
    An aqueous solution of K2SO4 is diluted by adding water. How the values of G,k,∧m and ∧eq vary ? Select the correct answer from above options...
asked Jan 4, 2022 in Education by JackTerrance
0 votes
    I have a distribution of tube radius r, and I would like to plot tubes for all the sampled r in ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
0 votes
    I have a dataset with labels and datapoints, problem is that rather then a classification problem I want to ... quadratic estimation. Select the correct answer from above options...
asked Feb 3, 2022 in Education by JackTerrance
0 votes
    There are a number of obfuscation programs out there for .Net and I've tried one, my exe seems ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 27, 2022 in Education by JackTerrance
0 votes
    There are a number of obfuscation programs out there for .Net and I've tried one, my exe seems ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 27, 2022 in Education by JackTerrance
0 votes
    There are a number of obfuscation programs out there for .Net and I've tried one, my exe seems ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 26, 2022 in Education by JackTerrance
0 votes
    .Data source includes the information that will vary of differ. True/False Select the correct answer from above options...
asked Dec 25, 2021 in Education by JackTerrance
0 votes
    In conductors, the E and H vary by a phase difference of (a) 0 (b) 30 (c) ... theory proposed by,electromagnetic theory engineering physics,electromagnetic theory nptel...
asked Nov 6, 2021 in Education by JackTerrance
0 votes
    I am trying to calculate Euclidean Distance for MNIST data set. X_Train = 60,000*784 and X_Test = ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 14, 2022 in Education by JackTerrance
0 votes
    How would you identify specific points in an image based on the pixels around the point(s) that you ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 4, 2022 in Education by JackTerrance
0 votes
    Every now and then, variables just stop showing up in the Workspace pane. who and whos show that there ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 21, 2022 in Education by JackTerrance
0 votes
    Why Should I Use Numpy Rather Than Idl, Matlab, Octave, Or Yorick?...
asked Apr 25, 2021 in Technology by JackTerrance
...