what happen when I Divide 1:3/4:6 ??
Show older comments
hello everybody .... hope you are well :)
maybe it's a silly question but really I could not fine the answer :S
when i type this :
1:3/4:6 what happen ??
I thought it divide two arrays, so i defined x = [1 2 3]; y = [4 5 6]; x/y
but the answer was different :S
anyone can give the idea plz :$
Accepted Answer
More Answers (1)
dpb
on 14 Jul 2013
when i type this :
1:3/4:6
Read section "operator precedence" in the Matlab section on arithmetic operators. Followed on by
doc colon
The combination explains all...
Categories
Find more on Resizing and Reshaping Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!