need you help please please
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/157305/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/157307/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/157310/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/157311/image.png)
>> A=[1 2;3 4]; >> B=[9 8 7;6 5 4;3 2 1]; >> a=[11,12] >> b=[21;22]; >> c=[19 18 17]; >> d=[29;28;27];
i am stuck on these questions , i did the rest but really stuck on these question , i spend almost 4 hours playing around with different ways, but can't get the right answer. any help will be much appreciated. Thank you soo much
0 Kommentare
Antworten (2)
Mischa Kim
am 23 Feb. 2014
Bearbeitet: Mischa Kim
am 23 Feb. 2014
John, for the first one, use
ans1 = [a b'; d B]
it's simply putting together vectors and matrices in the correct order. To get the 1's in the second example, you could use A(1,1), four times. And so on and so forth...
6 Kommentare
Walter Roberson
am 24 Feb. 2014
The "2*" of "2*A(1,1)" violates the constraint of not introducing any new scalars. You could replace the "2*A(1,1)" with A(1,1)+A(1,1)
However, as I read the question, the indices (1,1) would be introduced scalars. Forming the 2 x 2 sub-block of 1's then becomes difficult.
Sagar Damle
am 25 Feb. 2014
I think we are allowed to use scalars as indices but not as extra data.
John,where did you get these questions(from which book)?If they are in a book,are they in 'Exercise' of a chapter?What are the contents of that chapter?(This will help us to narrow our thinking,because exercise of a chapter contains problems related to that chapter.)
Can we use rem(input_matrix,2) to get output in terms of 0's and 1's only?
Siehe auch
Kategorien
Mehr zu Linear Algebra finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!