Borrar filtros
Borrar filtros

How does this matlab function works?

1 visualización (últimos 30 días)
Priya
Priya el 22 de En. de 2014
Comentada: Priya el 22 de En. de 2014
Could someone please explain how this function works in defining the matrices
For example,
B=zeros(size(A,1),1); C=eye(size(A));

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 22 de En. de 2014
Editada: Azzi Abdelmalek el 22 de En. de 2014
doc size
doc zeros
doc eye
You can also try an example
>> A=[1 2 3;4 5 6]
B=zeros(size(A,1),1)
C=eye(size(A))
A =
1 2 3
4 5 6
B =
0
0
C =
1 0 0
0 1 0
  2 comentarios
Priya
Priya el 22 de En. de 2014
Thank you.
Priya
Priya el 22 de En. de 2014
The size of matrix A (in the model) is 14x14 B= 14x2 C= 14x14 D= 14x2
Now I need to how to use the function below to make the size of matrix B as 14x2
B=zeros(size(A,1),1)
Please drop your answers.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Triangulation Representation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by