MATLAB 命令 data=[1 4 2 4 4 1 2 3 1 3];y=hist(data,4), 结果为A.y=4 1 2 3B.y=3 2 2 3C.y=3 2 3 2D.y=4 2 1 1

MATLAB 命令 data=[1 4 2 4 4 1 2 3 1 3];y=hist(data,4), 结果为

A.y=4 1 2 3

B.y=3 2 2 3

C.y=3 2 3 2

D.y=4 2 1 1


参考答案和解析
y=3 2 2 3

相关考题:

阅读分析本题程序段后回答问题:(1)程序实现了什么功能?(2)写出程序的输出结果 阅读分析本题程序段后回答问题:(1)程序实现了什么功能?(3分)(2)写出程序的输出结果;(4分)(3)写出算法的时间复杂度。(3分)#include stdio.h#define N 7typedef int datatype;void main(void){ int 1,j,t;datatype data[N]={1,2,3, 4,5,6, 7}; /*处理的数据*/i=0;j=N-1;while (ij){ t=data[i];data[i++ ]=data[j];data[j--]=t;}printf(”运行结果为: \n);for(i= =0;iN-1;i++)printf(%d; ,data[i]);}

执行下列程序后,屏幕上显示的结果是 X=2 Y=3 ?X,Y DO SUB1 ??X,Y PROCEDURE SUB1 PRIVATE Y X=4 Y=5 RETURNA.2 3 4 5B.2 3 4 3C.4 5 4 5D.2 3 2 3

设执行以下程序段时依次输入2,4,6执行结果为 Dim a(4) As Integer,b(4) As Integer For k =0 To 2 a(k + 1) = Val(InputBox( "Enter data:" ) ) b(3 - k) =a(k + 1) Next Print b(k)A.2B.4C.6D.0

下列程序的输出结果是( )。void fun(int*X,int y){ printf(%d%d,*x,*y);*x=3;*y=1;}main{ int x=1,y=2;fun(&y,&x);printf(%d%d,x,y);}A.2 1 4 3B.1 2 1 2C.1 2 3 4D.2 1 1 2

下列程序段的输出结果是______。 void fun(int *x,int *y) {printf("%d%d",*x,*y);*x=3;*y=4;} main() { int x=1,y=2; fun(y,x); printf("%d%d",x,y); }A.2 1 4 3B.1 2 1 2C.1 2 3 4D.2 1 1 2

设执行以下程序段时依次输入2,4,6,执行结果为Dim a(4)As IntegerDim b(4)AS IntegerFor k=0 To 2a(k+1)=Val(InputBox("Enter data:"))b(3 - k) =a(k + 1)Next kPrint b(k)A.2B.4C.6D.0

You are the Cisco Network Designer in Cisco.com. Which statement is correct regarding NBAR and NetFlow?() A. NBAR examines data in Layers 1 and 4.B. NBAR examines data in Layers 3 and 4.C. NetFlow examines data in Layers 3 and 4.D. NBAR examines data in Layers 2 through 4.

阅渎以下说明和C代码,回答问题,将解答写入答题纸的对应栏内。 【说明】函数bubbleSort(int arr [ ] int n, int (*compare)(int, int)的功能是根据调用时传递的比较函数 compare 对数組arr的前n个元素进行排序。 【C代码】#define swap(a,b){a=a^b;b=a^b;a=a^b //交换a与b 的值int less(int x, int y){ return((xy)?1: 0);} void bubble Sort(int arr[ ], int n, int (*compare)(int, int)){ int i,j; int swapped= 1; for( i= 0; swapped; 1++) { swapped =0; for(j=0; j【问题1】设有如下数组定义:int data1[ ]={4,2.6.3,1};int data2[ ]={4,2,6.3,1}int datas3[ ]={4,2,6.3,1}请分别给出下面的函数调用执行后,数组 data1、data2和 data3 各自的元素序列。(1)bubble Sort(data1, 5, less);(2)bubbleSort(data2, 5, larger)(3)bubbleSort(data3, 3, larger)

下面的程序使用了函数指针,其运行结果是______。#include<stdio.h>#include<math.h>int f1(int a){return a*a;}int f2(int a){return a*a*a;}void main( ){int x=3,y1,y2,y3,y4;f=f1;y1=(*f)(x);y2=f1(x);f=f2;y3=f(x);y4=f2(x);printf("y1=%d,y2=%d,y3=%d,y4=%d\n",y1,y2,y3,y4);}A.y1=27,y2=9,y3=9,y4=27B.y1=9,y2=9,y3=27,y4=27C.y1=9,y2=27,y3=9,y4=27D.y1=27,y2=27,y3=9,y4=9

仔细阅读下面程序,请给出运行结果( )。#include#includeint f1(int x){return x*x;}int f2(int x){return x*x*x;}main( ){int x=3,y1,y2,y3,y4;int(*f)( );f=f1;y1=(*f)(x);y2=f1(x);f=f2;y3=f(x);y4=f2(x);printf(“y1=%d,y2=%d,y3=%d,y4=%d\n”,y1,y2,y3,y4);}A.y1=9,y2=9,y3=27,y4=27B.y1=3,y2=9,y3=27,y4=9C.y1=3,y2=3,y3=9,y4=9D.y1=3,y2=9,y3=9,y4=27

假设四个工序的收率分别Y1、Y2、Y3、Y4,则车间的总收率为()A、Y1+Y2+Y3+Y4B、Y1Y2Y3Y4C、(Y1+Y2)(Y3+Y4)D、Y1Y2+Y3Y4

设P是指向A的指针,Y为整型量,A=5,A的地址为FE03;B=6,B的地址为FE04;下列语句分别执行的结果是()。 1)Y=*A; 2)Y=*P++; 3)Y=++A; 4)Y=*++PA、1)Y=4;2)Y=4;3)Y=FE05;4)Y=7B、1)Y=7;2)Y=7;3)Y=FE02;4)Y=4C、1)Y=6;2)Y=6;3)Y=FE03;4)Y=5D、1)Y=5;2)Y=5;3)Y=FE04;4)Y=6

指出以下数据定义伪指令所分配的字节数(80386系统)。 (1)DATA1 DF 12,34,56 (2)DATA2 DF DATA2 (3)DATA3 DQ 0,10 DUP(?) (4)DATA4 DT 0,1,2

下列标号为什么是非法的? (1)GET.DATA (2)1_NUM (3)TEST-DATA (4)RET (5)NEW ITEM

Your production database is running in archivelog mode and you are using recovery manager (RMAN) with recovery catalog to perform the database backup at regular intervals. When you attempt to restart the database instance after a regular maintenance task on Sunday, the database fails to open displaying the message that the data file belonging to the users tablespace are corrupted. The steps to recover the damaged data files are follows: 1. Mount the database 2. Open the database 3. Recover the data file 4. Restore the data file 5. Make the data file offline 6. Make the data file online Which option identifies the correct sequence that you must use to recover the data files?()A、2, 4, 3B、1, 4, 3, 2C、2, 5, 4, 3, 6D、5, 2, 4, 3, 6E、1, 5, 4, 3, 6, 2

Note the following structures in your database server: 1.Extents 2.OS Blocks 3.Tablespace 4.Segments 5.Oracle Data Block Which option has the correct arrangement of these structures from the smallest to the largest()A、2,5,1,4,3B、1,2,3,4,5C、5,2,1,3,4D、2,1,5,4,3

ote the following structures in your database server: 1:Extents 2:OS Blocks 3:Tablespace  4:Segments  5:Oracle Data Block  Which option has the correct arrangement of these structures from the smallest to the largest()A、2, 5, 1, 4, 3B、1, 2, 3, 4, 5C、5, 2, 1, 3, 4D、2, 1, 5, 4, 3

指出以下数据定义伪指令所分配的字节数(8086系统)。 (1)DATA1 DB 10,?,‘A’ (2)DATA2 DW 10 DUP(2,3 DUP(?),1) (3)DATA3 DB ‘HELLO,WORLD!’,‘$’ (4)DATA4 DW DATA4

You are the Cisco Network Designer in Cisco.com. Which statement is correct regarding NBAR and NetFlow?()A、NBAR examines data in Layers 1 and 4.B、NBAR examines data in Layers 3 and 4.C、NetFlow examines data in Layers 3 and 4.D、NBAR examines data in Layers 2 through 4.

过点(4,-1,3)且平行于直线L:(x-3)/2=y=(z-1)/5的直线方程为().A、(x-4)/2=(y+1)/0=(z-3)/5B、(x-4)/2=(y+1)/1=(z-3)/5C、(x+4)/2=(y-1)/0=(z+3)/5D、(x+4)/2=(y-1)/1=(z+3)/5

单选题Note the following points describing various utilities in Oracle Database 11g: 1. It enables the transfer of data from one database to another. 2. It provides a complete solution for the backup, restoration, and recovery needs of the entire database. 3. It enables the loading of data from an external file into tables of an Oracle database. 4. It provides a tape backup management for the Oracle ecosystem.  Which point describes the Oracle Data Pump utility()A1B2C3D4E1 and 3F1, 2, 3, and 4

单选题Note the following points describing various utilities in Oracle Database 11g: 1. It enables the transfer of data from one database to another. 2. It provides a complete solution for the backup, restoration, and recovery needs of the entire database. 3. It enables the loading of data from an external file into tables of an Oracle database. 4. It provides a tape backup management for the Oracle ecosystem.  Which point describes the Oracle Data Pump utility()A1B2C3D4E1 and 3F1, 2, 3, and 4

单选题Your production database is running in archivelog mode and you are using recovery manager (RMAN) with recovery catalog to perform the database backup at regular intervals. When you attempt to restart the database instance after a regular maintenance task on Sunday, the database fails to open displaying the message that the data file belonging to the users tablespace are corrupted. The steps to recover the damaged data files are follows: 1. Mount the database 2. Open the database 3. Recover the data file 4. Restore the data file 5. Make the data file offline 6. Make the data file online Which option identifies the correct sequence that you must use to recover the data files?()A2, 4, 3B1, 4, 3, 2C2, 5, 4, 3, 6D5, 2, 4, 3, 6E1, 5, 4, 3, 6, 2

单选题Your production database is running in archivelog mode and you are using recovery manager (RMAN) with recovery catalog to perform the database backup at regular intervals. When you attempt to restart the database instance after a regular maintenance task on Sunday, the database fails to open displaying the message that the data file belonging to the users tablespace are corrupted.   The steps to recover the damaged data files are follows:   1. Mount the database  2. Open the database  3. Recover the data file  4. Restore the data file  5. Make the data file offline  6. Make the data file online   Which option identifies the correct sequence that you must use to recover the data files?()A 2,4,3B 1,4,3,2C 2,5,4,3,6D 5,2,4,3,6E 1,5,4,3,6,2

单选题You are the Cisco Network Designer in Cisco.com. Which statement is correct regarding NBARand NetFlow?()A NBAR examines data in Layers 1 and 4.B NBAR examines data in Layers 3 and 4.C NetFlow examines data in Layers 3 and 4.D NBAR examines data in Layers 2 through 4.

单选题有如下程序:#includemain(){ inti,data; scanf(%d,data); for(i=0;i5;i++) {  if(idata)continue;  printf(%d,,i); } printf();}程序运行时,从键盘输入:3回车后,程序输出结果为(  )。A3,4,B1,2,3,4,C0,1,2,3,4,5,D0,1,2,

单选题ote the following structures in your database server: 1:Extents 2:OS Blocks 3:Tablespace  4:Segments  5:Oracle Data Block  Which option has the correct arrangement of these structures from the smallest to the largest()A2, 5, 1, 4, 3B1, 2, 3, 4, 5C5, 2, 1, 3, 4D2, 1, 5, 4, 3

单选题有如下程序:#include struct S{ int x,y;};main(){ struct S data[2] = {4,3,1,9}; int i; for(i=0;i2;i++)  printf(%d,%d;,data[i].x, data[i].y1);}程序运行后的输出结果是(  )。A4,1;1,4;B4,1;2,4;C4,3;1,9;D4,3;2,3;