-3
\$\begingroup\$

enter image description here

I am writing a matrix (a function) so I can plot it later on. It will go from theta2 = [-55:1:55] (-55 to 55) and the Y variable will be "theta4" which depends on theta2.

The highlited area in the picture should be in matrix form, but it is spitting out a single number, not 111 numbers! I have played around with it and it looks like when I add the ( / 2 .* a_t), it changes to single variable. (DIVIDE BY 2 * A_T)

How do I make it give me a matrix , not a single number?

theta2 =[-55:1:55];
theta4 = 2 * atand( (-b_t - sqrt(b_t.^2 - 4 .* a_t .* c_t)) / (2 .* a_t))
theta4 = 2 * atand( (-b_t - sqrt(b_t.^2 - 4 .* a_t .* c_t)) / (2 .* a_t))
New contributor
102gab is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
\$\endgroup\$

closed as off-topic by Dair, Quuxplusone, vnp, rolfl Feb 11 at 1:48

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Dair, Quuxplusone, vnp, rolfl
If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.