How do I change colors for values above zero?
Show older comments
Hey,
I have some trouble changing the color of my bars with values bigger than zero. Can anybody help me please?
My script so far:
%%
clear, clc, close all
%% LOAD
load data.txt
data = load('data.txt')
%% MATRIX
M = readmatrix('data.txt')
x = M(:,1)
y = M(:,2)
%% PLOT
hold on
bar (x,y)
hold off
Accepted Answer
More Answers (0)
Categories
Find more on Line Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!