• 2022-06-09 问题

    x=np.arange(12) a=x.reshape(3,4) print(a[0:2]) 输出结果:

    x=np.arange(12) a=x.reshape(3,4) print(a[0:2]) 输出结果:

  • 2021-04-14 问题

    下列语句执行后,x的值是()。x=reshape(1:12,3,4);x=x(:, end)

    下列语句执行后,x的值是()。x=reshape(1:12,3,4);x=x(:, end)

  • 2022-06-17 问题

    中国大学MOOC: A = reshape(1:15,5,3); X = null(A); n = size(A,2); k = size(X,2); 则n-k=____

    中国大学MOOC: A = reshape(1:15,5,3); X = null(A); n = size(A,2); k = size(X,2); 则n-k=____

  • 2022-06-17 问题

    A = reshape(1:15,5,3); X = null(A); n = size(A,2); k = size(X,2); 则n-k=____ A: 0 B: 1 C: 2 D: -1

    A = reshape(1:15,5,3); X = null(A); n = size(A,2); k = size(X,2); 则n-k=____ A: 0 B: 1 C: 2 D: -1

  • 2022-06-11 问题

    将(4,3)的numpy矩阵H转置。 A: reshape(3,4) B: reshape(-1,4) C: reshape(3,-1) D: T

    将(4,3)的numpy矩阵H转置。 A: reshape(3,4) B: reshape(-1,4) C: reshape(3,-1) D: T

  • 2022-06-15 问题

    将一个维数为3*4的数组 x转换成维数为4*3的数组的命令是reshape(x,4,3)

    将一个维数为3*4的数组 x转换成维数为4*3的数组的命令是reshape(x,4,3)

  • 2022-06-17 问题

    当默认的reshape callback不满足需求时,我们必须编写自己的reshape callback。

    当默认的reshape callback不满足需求时,我们必须编写自己的reshape callback。

  • 2021-04-14 问题

    已知x = np.arange(30).reshape(5,6),那么语句x[[0,3], :] = 0的功能为把数组x中行下标为0和3的所有元素值都修改为0

    已知x = np.arange(30).reshape(5,6),那么语句x[[0,3], :] = 0的功能为把数组x中行下标为0和3的所有元素值都修改为0

  • 2022-05-30 问题

    设A为6阶方阵,将其副对角线的元素生成2×3矩阵B,相应的命令是( )。 A: B=reshape(diag(fliplr(A)),3,2) B: B=reshape(diag(fliplr(A)),2,3) C: B=reshape(diag(flipud(A)),3,2) D: B=reshape(diag(flipud(A)),2,3)

    设A为6阶方阵,将其副对角线的元素生成2×3矩阵B,相应的命令是( )。 A: B=reshape(diag(fliplr(A)),3,2) B: B=reshape(diag(fliplr(A)),2,3) C: B=reshape(diag(flipud(A)),3,2) D: B=reshape(diag(flipud(A)),2,3)

  • 2021-04-14 问题

    有以下程序: x=reshape(1:12,3,4); m=0; n=0; fo... end end 则m和n的值分别是(

    有以下程序: x=reshape(1:12,3,4); m=0; n=0; fo... end end 则m和n的值分别是(

  • 1 2 3 4 5 6 7 8 9 10