Matlab Live Editor Post

In this post we show the results of posting a Matlab Live Editor .mlx file in DIVI. Save the .mlx as HTML then copy the HTML code and post in a DIVI CODE module.

اكتب بالعربي هنا

Insert equation

$$x=5$$

MATLAB LIVE EDITOR

MATLAB LIVE EDITOR

Italics and underline are ok
Hyperlink www.google.com
instructions:
  • inst1
  • inst2
  • inst3
Lists
  1. item
  2. item
  3. item
Define the resolvent operator of a markov process
with the GBM infinitesimal generator

Section 2

code segment 1
A=rand(2,2);
B=rand(2,2);
C=A*B;
code segment 2
s1 = sin(A);
s2 = cos(B);
s3 = s1./s2;
code segment 3
x=linspace(-5,5,256);
y=sin(x);
z_fun = @(x) (2.*sin(x).^2)./cos(0.5.*x);
z = z_fun(x);
plot(x,y,x,z); grid on; title('Title 1'); legend('y','z');
code segment 4
addpath('C:\Users\Tamza_000\Matlab files'); %necessary to locate external .m file
xmin = -4;xmax = -xmin; M=2^8;
[xx,yy] = fun1_(xmin,xmax,M);
plot(xx,yy);grid on; title('Title 2');
The results are fantastic
format long
ff = @(x) 1/cosh(10*(x-.2))^2 + 1/cosh(100*(x-.4))^4 + 1/cosh(1000*(x-.6))^6;
Iexact = 0.210802735500549277;
tic, f = chebfun(ff,[0 1]); I = sum(f); toc
Elapsed time is 0.151166 seconds.
plot(f); grid on;
Surface
[X,Y] = meshgrid(1:0.05:10,1:0.1:20);
Z = sin(X) + cos(Y);
mesh(X,Y,Z); xlabel('x'); ylabel('y'); zlabel('z');
view([-32.30 19.60])