Plot the values for the following N = 10, 10^2 , 10^3,...., 10^10 use log scale for both axes.
N^1/3 , 10N+3, 3N+10logN, N log N , N-5, N^3, 1.0001^N
Not sure where to start
MATLAB Code:
close all
clear
clc
N = 10.^(1:1:10);
subplot(241), loglog(N, N.^(1/3)), title('N^1 ^/ ^3')
subplot(242), loglog(N, 10*N+3), title('10N+3')
subplot(243), loglog(N, 3*N+10*log(N)), title('3N+10log(N)')
subplot(244), loglog(N, N.*log(N)), title('Nlog(N)')
subplot(245), loglog(N, N-5), title('N-5')
subplot(246), loglog(N, N.^3), title('N^3')
subplot(247), loglog(N, 1.0001.^N), title('1.0001^N')
Output:
Get Answers For Free
Most questions answered within 1 hours.