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

3 views (last 30 days)
matrice=[m n];

Accepted Answer

Roger Stafford
Roger Stafford on 19 Feb 2018
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 Comments
Roger Stafford
Roger Stafford on 19 Feb 2018
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.

Sign in to comment.

More Answers (0)

Categories

Find more on Modify Image Colors in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!