Can you help me guys i cant plot this this graph using matlab

Answers (2)

t = [-7.8 -6 -5 -3 -2 0 1 3 4 6 7 9 10 11];
x = [0.2 2 0 2 0 2 0 2 0 2 0 2 0 1];
figure('Units','pixels','Position',[1 1 500 100]);
plot(t,x);
set(gca(),'XLim',[-7.8 11],'YLim',[0 3]);
Try this —
x = linspace(0, 10);
y = 1 - exp(-0.7*x);
figure
plot(x, y)
hold on
plot([0.9 1.75]-0.1, [1 1]*0.4, 'k')
plot([1 1]*1.6, [0.4 0.68], 'k')
plot([0 6], [1 1]*0.99, '--k')
plot([1 1]*6, [0 0.99], '--k')
hold off
ylim([0 1.15])
set(gca, 'YTick',[], 'XTick',[]);
text(-0.55, 0.99,'v_{sat}')
text(-0.45, 1.09,sprintf('\\uparrow\nv_d'))
text(6, -0.05, 'E_c')
text(9.4, -0.05, sprintf('E \\rightarrow'))
text(1.5, 0.35, 'Slope = \mu')
Make appropriate changes to get the desired result.

Tags

Asked:

on 21 Dec 2021

Answered:

on 24 Dec 2021

Community Treasure Hunt

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

Start Hunting!