accessing the element for the matrix but that elemnt is in the form of row vector
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
accessing the element for the matrix but that elemnt is in the form accessing the element for the matrix but that elemnt is in the form of row vectorof row vector .eg
A=[ d(1,:) d(5,:) d(1,:)
d(1,:) d(4,:) d(6,:)]
and d=[111111
111111
111111
111111
111111
111111]
so code is
For j=1:6
temp1=A(j)
so it will generate a result as 111111 only not a single 1 at j=1.
your help is highly appreciated
1 Kommentar
DGM
am 22 Feb. 2022
I don't know what you're asking for, least of all because the code already does what you appear to be asking.
d = [111111
111111
111111
111111
111111
111111]
A = [d(1,:) d(5,:) d(1,:)
d(1,:) d(4,:) d(6,:)]
for j = 1:6
temp1 = A(j)
end
Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!