How do I change colors for values above zero?
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Line Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
