code for conditional statement
이전 댓글 표시
If I have
a = [1:5], b = [1:5], c =[1:5], d =[1:5], e = zeros(1,4);
How can I write a code for the following condition?
I want to pick the first entries from a,b,c,d and put in 'e', that will be 1 1 1 1. I want the conition were no two entries are the same. If two entries a same, I want to replace it with another value from the array. So I want 'e' to be 1 2 3 4
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Image Arithmetic에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!