Community Profile # Suraj Sudheer Menon

##### Last seen: circa 2 mesi ago
7 total contributions since 2020

View details...

Contributions in
View by

Creating an array from 1 to n
B=sort(A); for i=2:numel(B) if(B(i)==B(i-1) B(i)=false; end end B(B==false)=[]; A(A==B)=[]

circa 2 mesi ago | 0

How do I calculate a mean value of a vector and ignore from the "0" when appears inside the vectors?
All non zero elements can be stored in another location using logical indexing and mean operation can be performed. temp=A(A~=0...

circa 2 mesi ago | 0

Substitute numbers in array
The following could be an approach:- sub=[5 6 7 8 1 2 3 4]; XX=flip(X); for i=1:numel(X) XX(i)=sub(XX(i)); end %XX con...

circa 2 mesi ago | 0

How can I save 3 matrices created by for loop to save in a single matrix?
let x,y,z be the 3 iteration output vectors. ans=[x ; y ; z] % This creates a new vector by combining the above vectors. The...

circa 2 mesi ago | 0

How to define 4 digits after decimal
The data that is stored in a workspace can be in different formats.The short format displays decimal values upto 4 digits. form...

circa 2 mesi ago | 0