Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

the result in MATLAB. Use loglog scale. Save the MATLAB figure in .fig format sp

ID: 2266707 • Letter: T

Question



the result in MATLAB. Use loglog scale. Save the MATLAB figure in .fig format specifying the x axis and the y axis. (15) 2. Following is a clock circuit for counting hours. The clock is required to count up to 10 and then reset from 2. Draw the connection of AND gate in the figure to achieve this operation. Hour Display d.DP Ph (U7) CD4543(UT) CD4543 appropeiately to logic 1 or logic 0 Seves segment drive 2, 22 21 29 Seven segment driven 2 2: 21 20 BI Q4 Q Q Q (UD CD4510 C (BCD pre-setable (U2) CD4510 C (BCD pee-setable Reset Couster) P P Pi Po See text 8 parallel input lines (see text)

Explanation / Answer

[x, y]=meshgrid(logspace(-3,3,1000),logspace(-2,2,800));
%some function
z = 3*(1-log10(x)).^2.*exp(-(log10(x).^2) - (log10(y)+1).^2) ...
- 10*(log10(x)/5 - log10(x).^3 - log10(y).^5).*exp(-log10(x).^2-log10(y).^2) ...
- 1/3*exp(-(log10(x)+1).^2 - log10(y).^2);
figure
hA1 = subplot(1,1,1);
[cS hCS]=contour(x,y,z,[-6:1.5:8]);
set(hA1,'xscale','log','yscale','log');
hLS = clabel(cS,hCS);
title('cluttered contour labels, nice x and yticklabel, also when zoomed')
figure
hA2 = subplot(1,1,1);
[cS hCS]=contour(log10(x),log10(y),z,[-6:1.5:8]);
hLS = clabel(cS,hCS);
%modify xyticklabel manualy
set(hA2,'xticklabel',num2str(10.^str2num(get(hA2,'xticklabel'))))
set(hA2,'yticklabel',num2str(10.^str2num(get(hA2,'yticklabel')),2))
title('nice contour labels, messy x and yticklabel, does not work for zooming')