Hi there! I have a matrix A = 495*2973 where I should replace all the values which are <= 1 with 0.
May you know a quick way to do that? Or will I be obliged to make a loop?
Thanks a lot
P.

 채택된 답변

Arkadiusz
Arkadiusz 2014년 2월 10일

1 개 추천

A(A<=1)=0

댓글 수: 1

Jan
Jan 2014년 2월 10일
Isn't this nice? I've struggeled the morning with a Windows batch scripts and now I deeply appreciat this kind of clean and clear Matlab codes.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

PaoloPa
PaoloPa 2014년 2월 10일

0 개 추천

Great. I was working on a multiple sheet excel file and somehow didn't worked. Now I created two different files and it does work.
I am sorry being so low, but...
Thanks mate

카테고리

도움말 센터File Exchange에서 Characters and Strings에 대해 자세히 알아보기

질문:

2014년 2월 10일

답변:

2014년 2월 10일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by