HOW CAN I PLOT THIS?
    8 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Pul
 el 1 de Jul. de 2021
  
    
    
    
    
    Comentada: Pul
 el 3 de Jul. de 2021
            Hello, I'm not able to plot this even if I converted the data I need in table.
Could anyone kindly help me please?
Thank you!
clear all
close all
load('GIULIA_MMEQ1.mat');
A=table2array(GIULIAMMEQ1(:,2));
B=str2double(A);
giulia_MM_EQ_NEW= B * 0.35 * 10;
C=array2table(GIULIAMMEQ1);
stackedplot(GIULIAMMEQ1.Dec1997,C)
0 comentarios
Respuesta aceptada
  Amit Bhowmick
      
 el 1 de Jul. de 2021
        Please check and confirm the correction
clear all
close all
clc
load('EXAMPLE.mat');
A=GIULIAMMEQ1.Var4%table2array(EXAMPLE(:,2)); EXAMPLE.mat contains GIULIAMMEQ1 instead of table EXAMPLE
B=str2double(A);
NEW= B * 50 * 20;
C=GIULIAMMEQ1.Var4%array2table(EXAMPLE);% TABLE EXAMPLE MISSING
% plot(EXAMPLE.Dec1997,C)
stackedplot(GIULIAMMEQ1)
9 comentarios
Más respuestas (2)
  David Hill
      
      
 el 1 de Jul. de 2021
        load('EXAMPLE.mat');
m=table2array(GIULIAMMEQ1);
d=datenum(m(:,1));
v=str2double(m(:,2));
idx=~isnan(v);
plot(d(idx),v(idx));
6 comentarios
  Amit Bhowmick
      
 el 2 de Jul. de 2021
				Use stackedplot instead of plot for the correction on x axis leveling
  Pul
 el 2 de Jul. de 2021
        4 comentarios
  Amit Bhowmick
      
 el 3 de Jul. de 2021
				T=table(C,NEW,'Variablenames',{'Year' 'Value'}); %Put label 
stackedplot(T,'XVariable','Year') %
Ver también
Categorías
				Más información sobre Data Type Conversion en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!









