hi all..(adsbygoogle = window.adsbygoogle || []).push({});

I have a 2x2 matrix and an array , for example:

a=linspace(0,12) %this is my frequency range.

B=[2*a 3*a-1

a./2 a]

this one does not results a 2x2 matrix, that I need it to have ...B2xB1xB

how could i get a 2x2 matrix? should i use a loop instead of an array?

tnx alot.

Elham

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Matlab: how to use an array in a matrix

**Physics Forums | Science Articles, Homework Help, Discussion**