hi , How do I activate the i (subscript) in Subscript[A, i] in order to display output in mm of array
Ältere Kommentare anzeigen
for r=1:(n-1)
for i=1:mm
if (out(i,1)<z(r)&z(r)<out(i,2))
for j=1:mm
if (out(j,1)<z(r+1)&z(r+1)<out(j,2))
Subscript[A, i](r)=Mid(j);
end
end
end
end
end
3 Kommentare
Geoff Hayes
am 15 Aug. 2016
mohammed - what is Subscript? What is A? Your notation
Subscript[A, i](r)=..
using the square brackets is invalid so please describe what you are attempting to do here.
mohammed elmenshawy
am 15 Aug. 2016
Geoff Hayes
am 15 Aug. 2016
So...what is Subscript and what is A?
I would advise against using dynamically created variables which is what I think you are suggesting with your A1, A2, etc. This will just lead to errors. Better to use a cell array to collect all of this data.
Antworten (1)
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!