Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • 53-quantity-discrete-delete-grid-gridname-properties
  • 36-revise-subs
  • 49-simplify-internal-methods
  • 47-multiplication-of-empty-quantities
  • 28-domain-argument-as-required-argument
  • quantityFunctionFixes
  • standDiss
  • 34-changeGrid
  • Velimir
  • Extend_isConstant
  • Haoyue
  • velimir
  • 2020-ifac-wc
14 results

example.m

Blame
  • example.m 769 B
    
    %% PLOT
    t = (0:0.2:10)';            % Darstellung als Spaltenvektor ist wichtig!
    y1 = sin(t);
    y2 = cos(t);
    
    basepath = [pwd filesep '+export'];
    
    data.plot = export.dd(...
                'M', [t, y1, y2], ...
                'header', {'t', 'y1', 'y2'}, ...
                'filename', 'plot', ...
                'basepath', basepath ...
                );
    
    %% SURF
    z = (0:20)';
    
    [X, Y] = meshgrid(t , z);
    w = sin(X) + cos(Y);
    surf(X,Y,w)
    
    data.surf = export.ddd(...
                    'x', z, ...
                    'y', t, ...
                    'z', w, ...
                    'filename', 'surf', ...
                    'basepath', basepath ...
                    );
                      
    export.Data.exportAll(data);
    
    disp(['call "pdflatex example.tex" in the path "' basepath '" to build the pdf file']);