Community Profile

photo

Bhargav Boddupalli


Last seen: 2 years ago Active since 2017

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Content Feed

View by

Question


Extracting a constant values from a 2D matrix
Hi, Is there a function which can be used to extract constant/nearest value to a particular value from a 2D? Thanks

4 years ago | 1 answer | 0

1

answer

Question


Improving my code - I'm trying to generate a checkerboard of size (222,786); length of each size 20. My code did work but I feel the logic can be improved. Kindly help.
% Channel number 90 to 875 chan = 1:1:786; no_of_chan=length(chan); % ffid 77 to 298 ffid = 1...

6 years ago | 1 answer | 0

1

answer

Question


I'm trying to check for a NaN value in an array in if condition expression but the control is not entering inside if condition.
For example : A = [1 2 3 NaN 3 5]; if isnan(A) ~= 0 %... end

6 years ago | 1 answer | 0

1

answer