Matlab

Moderators: None (Apply to moderate this forum)
Number of threads: 1494
Number of posts: 2174

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Variables and Constants in a matrix Posted by anuvab1911 on 10 Mar 2013 at 6:43 AM


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
theta1 = -160:10:160;

and T1 as is given,but it says
Error using vertcat
CAT arguments dimensions are not consistent.


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?



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.