Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

To get filled curves between y=0 axis and plot using b2r

1 Ansicht (letzte 30 Tage)
Utsav
Utsav am 8 Feb. 2016
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
My code runs: close all; clear all; b = -5 + (5+5)*rand(80,1) a=[1:1:80]; plot(a,b,'k'); colorbar colormap(b2r(-5,5))
This generates the attached plot. I need the plots filled up in accordance to gradient. Any help shall be highly appreciated. Also I shall like to know how can I fill positives with red and negatives with blue.

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by