Why does scatter now return an error
显示 更早的评论
I'm trying to use scatter in the same way I've always used it, to plot data in color, as in:
scatter(x,y, sz, dat,'filled')
where x, y and dat are m x 1 vectors and sz is just a single value (i.e. sz = 20). I get the following error:
Color must be one RGB triplet, an m-by-3 matrix of RGB triplets with one color per scatter point, or an m-by-1 vector with one value per scatter point.
This error occurs now with code I've run for years.
I recently had to reinstall Matlab due to a laptop failure and I'm using R2024b Update 2 on MacOS 15.1.1
Thanks.
3 个评论
Walter Roberson
2024-12-11
It seems to work for me, though I am on R2024b no update, but otherwise the same as you.
Geno
2024-12-12
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Scatter Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!