필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

finding vectors row posing in the matrix contain

조회 수: 3 (최근 30일)
Mohamuud hassan
Mohamuud hassan 2015년 5월 18일
마감: MATLAB Answer Bot 2021년 8월 20일
hello every; till now i have one problem which is : i have a vector called X which contains 13 characters.
x={'a','i','v','h','e','i','r','n','m','a','z','e','m'};
also i have matrix which contains 26 row and 26 column. 26*26 my question is: how i can find from Matrix specially, column one the X's first character and printout row number of that position. then second letter of X vector from the second column of the matrix. then third letter of X vector from the third column of the matrix. until last character of the X vector.
so help me for solving this problem.
  댓글 수: 2
Guillaume
Guillaume 2015년 5월 18일
Can you show an actual example of what you want (with a small matrix maybe) or rewrite what you're asking more clearly.
Note that if the cells of the cell array x only contain single characters, then you could just use a plain char array:
x = 'aivheirnmazem';
In all likelyhood, this will make the rest of the code easier.
Mohamuud hassan
Mohamuud hassan 2015년 5월 18일
thank you i solved

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by