Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - E=[ones( 1, num) in matlab; A] What do you mean? Num is an integer and a is an array, where the number of columns of a is equal to num. It's better to give an example.
E=[ones( 1, num) in matlab; A] What do you mean? Num is an integer and a is an array, where the number of columns of a is equal to num. It's better to give an example.
Clear all; clc

num = 5;

A=rand(3,num);

E=[ones( 1,num); Answer]

-Ones (1, num)- Defines a 1 array with 1 rows and num columns, where a is a matrix of x rows and num columns.

The first line of e is ones( 1, num), and the second line to the last line of e is matrix A.