Variables and Constants in a matrix - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Variables and Constants in a matrix

anuvab1911anuvab1911 Posts: 2Member
[img=http://s22.postimage.org/5cc4ac3vl/image.png]

I have to represent the 2D array as a variable where theta1 is a variable that varies from -160 to 160 through steps of 10.

I have defined theta1 as
[code]theta1 = -160:10:160;[/code]
and T1 as is given,but it says
[code]Error using vertcat
CAT arguments dimensions are not consistent.[/code]

If I declare the matrix with only first two rows,it accepts the input.Bu when displaying,its shows only the variable rows,not the constants.

How to declare the matrix with variables and constants?
Sign In or Register to comment.