Reputation: 984
I'm using MatLab
for plotting my data and now I'm interested in getting color schemes from Mathematica
, because the ones in MatLab
are actually not the best.
Is there any way to import them in MatLab
?
If not, is there a way to get similar color schemes like the DarkRainbow or the Rainbow in MatLab
? (I hate the jet in MatLab
since one is not able to see the yellow lines)
Upvotes: 1
Views: 473
Reputation: 25703
Create an appropriate table in Mathematica:
mint = Table[List @@ ColorData["MintColors"][x], {x, 0, 1, 0.01}];
Test in MATLAB using MATLink
<< MATLink`
OpenMATLAB[]
MSet["mint", mint]
MEvaluate[
"figure
surf(peaks)
colormap(mint)
"
]
Export to a .mat
file in case you don't have MATLink:
Export["mint" -> mint, {"MAT", "LabeledData"}]
Upvotes: 5