フィルターのクリア

How do I copy a 320x240 matrix into a 640x480 matrix and expand everything 200%?

1 回表示 (過去 30 日間)
Hi, For various reasons I need to use a 320x240 matrix (call it A) to compute it's element values, but then I need a 640x480 matrix (call it B) in which each element of A is twice as large in B. Thus A(1,1) will go to B(1:2,1:2), etc...
Is there a "fast" way to simply say "double the size of this matrix"?
Thanks, Ray

採用された回答

Andrei Bobrov
Andrei Bobrov 2013 年 6 月 26 日
B = kron(A,ones(2));

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by