How to create legend from cell array

7 Ansichten (letzte 30 Tage)
Farshid Daryabor
Farshid Daryabor am 19 Feb. 2020
Kommentiert: Farshid Daryabor am 19 Feb. 2020
How can I use the list of code number as legend for the Figure. Please find attached the list of number as cell array and Figure.
I want legend for instance as follow;
Platform_01 = 6900805
Platform_02 = 6901831
Platform_03 = 6901832
Platform_04 = 6901895
Platform_05 = 6901900
Platform_06 = 6901961
Platform_07 = 6901962
Platform_08 = 7900590
  1 Kommentar
Farshid Daryabor
Farshid Daryabor am 19 Feb. 2020
It is code to use for plotting
figure(1)
hold on
cellfun(@plot, T_cmems_out, depth_cmems)
set(gca, 'YScale', 'log');
set(gca, 'YTickLabel', get(gca,'YTick'))
grid on
grid minor
set(gca,'FontSize',18);
xlabel('Temperature (^oC)','fontsize',14)
ylabel('Depth (m)','fontsize',14')

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by