Create the following matrix A (matlab)

  • Thread starter Thread starter Firben
  • Start date Start date
  • Tags Tags
    Matlab Matrix
AI Thread Summary
To create the matrix A in MATLAB, define it as a 3x6 matrix with the specified values. The six-element row vector hc should include the first three elements from the second row of A (8, 9, 10) and the last three elements from the third row of A (16, 17, 18). To achieve this, start with hc = A(2, 1:3) and then concatenate it with A(3, 4:6). This will result in hc being defined as [8, 9, 10, 16, 17, 18]. Understanding the indexing of MATLAB is crucial for correctly extracting these elements.
Firben
Messages
141
Reaction score
0
A =
1 2 3 4 5 6
7 8 9 10 11 12
13 14 15 16 17 18

Create a six-element row vector named hc that contains the first three elements of the second row of A and the last three elements of the third row of A

If i start with hc=a(

What should i do next?
 
Physics news on Phys.org
What are "the first three elements of the second row of A"?

What are "the last three elements of the third row of A"?
 
I tried to combine those 2 formulas but it didn't work. I tried using another case where there are 2 red balls and 2 blue balls only so when combining the formula I got ##\frac{(4-1)!}{2!2!}=\frac{3}{2}## which does not make sense. Is there any formula to calculate cyclic permutation of identical objects or I have to do it by listing all the possibilities? Thanks
Since ##px^9+q## is the factor, then ##x^9=\frac{-q}{p}## will be one of the roots. Let ##f(x)=27x^{18}+bx^9+70##, then: $$27\left(\frac{-q}{p}\right)^2+b\left(\frac{-q}{p}\right)+70=0$$ $$b=27 \frac{q}{p}+70 \frac{p}{q}$$ $$b=\frac{27q^2+70p^2}{pq}$$ From this expression, it looks like there is no greatest value of ##b## because increasing the value of ##p## and ##q## will also increase the value of ##b##. How to find the greatest value of ##b##? Thanks

Similar threads

Replies
32
Views
2K
Replies
7
Views
3K
Replies
14
Views
2K
Replies
5
Views
2K
Replies
21
Views
2K
Replies
4
Views
1K
Replies
7
Views
2K
Back
Top