Calculating values for a matrix to then be reused

I am looking for a way to place a calculated value into a matrix corresponding to the number used to calculate the matrix. Say I were to use variables 'a' through 'z' (a-z). The matrix I wish to compute will be a to z by a to z or 26 by 26. After calculating an answer involving variables f and g, such that function[f,g], this will be placed into the corresponding 'fg' element.
Also if the fg was to be used again in another calculation for say the 'gh' element, how can I reuse fg?

3 件のコメント

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 2 月 19 日
This is not clear
mohammed
mohammed 2014 年 2 月 19 日
can you give some small example? like your inputs and your desired output.
Image Analyst
Image Analyst 2014 年 2 月 19 日
What's wrong with
yourArray(f,g) = yourAnswer; % Assign yourAnswer to element (f,g).
???

サインインしてコメントする。

回答 (0 件)

カテゴリ

タグ

質問済み:

2014 年 2 月 19 日

コメント済み:

2014 年 2 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by