bonsoire a tous ,commet je peut définir la taille d'une matrice ou d'un vecteur ? je veut par exemple une latrice de taille [m n]sachant que cette code ne me permet pas de faire ce que je veut

조회 수: 2 (최근 30일)
matrice=[m n];

채택된 답변

Roger Stafford
Roger Stafford 2018년 2월 19일
You can only do that if you assign values to every element of such a matrix. For example, you can set them all to zeros:
M = zeros(m,n);
or ones:
M = ones(m,n);
  댓글 수: 3
Roger Stafford
Roger Stafford 2018년 2월 19일
Is that a character string? If so, do this:
v2 = v(1:k);
That should give you a vector character string with the portion you want.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Signal Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by