

To superimpose two plots: use "hold" as in example_hold.m

Superimpose a second dataset with blue dots on top of the existing map: scatterm(decp,rap,15,'b','filled') This command puts a size=15 red dot at every data point in ra,dec space. Scatter plot with the mapping package: scatterm(dec,ra,15,'r','filled') This command goes after the plot command. To change the domain/range of a plot: axis() Kron can be used to construct tensor products: % s is 1 x 8000 and you want to make it 100 x 8000 % s is 8000 x 1 and you want to make it 8000 x 100 To make a 2D array that contains many copies of a 1D array: To find an element in an array satisfying a condition: sigmaPix(RA=6&DECL=0)Ĭomparing elements of two arrays of different sizes: sum(ismember(f,g))Ĭonvert a 2D array to a 1D array: Q = q(:) Ĭonvert a 1D array into a 2D array: psd2D = reshape(psd1D, nfreqs, nsegments) To display the contents of an array of char when all you see is, e.g., : char(inputfile) To comment out an entire section of code: %=tmp

Basics / General Information Running matlab on condor: HTCondor pageĬomment out something: %this is commented out
