Data Visualisation With MATLAB

Data Visualisation With MATLAB

3MATLAB is a high performing language for computation, visualization and integration of programming languages in an environment where problems and solutions are expressed in common mathematical notation. MATLAB offers displaying vectors and graphs visualisation in two or three dimensional format including animation. 

Plot vectors as lines 

No alt text provided for this image
No alt text provided for this image

Plot a histogram of 1,000 random numbers sorted into 30 equally spaced bins.

x = randn(1000,1);

nbins = 30;

h = histogram(x,nbins);

No alt text provided for this image

Plot multiple histograms

No alt text provided for this image

3D Model

No alt text provided for this image
No alt text provided for this image

The relationship between the base current and the emission based voltage

No alt text provided for this image
No alt text provided for this image

Lineplots

No alt text provided for this image
No alt text provided for this image
3D Model from multiple angles
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

Contour Chart

No alt text provided for this image
No alt text provided for this image

Slice & Dice- Four dimensional models

clc, clear, close all

x = -1:0.1:1;

y = -1:0.1:1;

z = -1:0.1:1;

[X, Y, Z] = meshgrid(x, y, z);

data = abs(cos(X) + cos(Y) + cos(Z));

figure(1)

slice(X, Y, Z, data, 0, 0, 0)

shading interp

axis equal

alpha(0.75)

colorbar

colormap jet

xlabel('')

ylabel('')

zlabel('')

set(gca, 'XTick', -1:0.1:1)

figure(2)

for movingsclice = -1:0.1:1

slice(X, Y, Z, data, movingsclice, movingsclice, movingsclice)

shading interp

alpha(0.75)

colorbar

colormap jet

xlim ([-1,1])

ylim ([-1,1])

zlim ([-1,1])

drawnow

end

figure(3)

slice(X, Y, Z, data, [], [-1 -0.5 0 0.5 1], [])

shading interp

alpha(0.75)

colorbar

colormap jet

view(-80, 15)

figure(4)

slice(X, Y, Z, data, [], [], [-1 -0.5 0 0.5 1])

shading interp

alpha(0.75)

colorbar

colormap jet

view(-20, 10)

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image


要查看或添加评论,请登录

MANOJ PAUL的更多文章

社区洞察

其他会员也浏览了