Community Profile

photo

Sohaib Bin Altaf


10 total contributions since 2017

Sohaib Bin Altaf's Badges

  • First Review
  • Revival Level 1
  • Thankful Level 1

View details...

Contributions in
View by

Question


extract an array from cell with its indexes
I have a cell array of following type, clstr= { [] 8 [7,8] [6,8] [6,7] [6,7,8] 5 4 [4,8] [4,7,8] [4,6,7] [4,6,7,8] [4,5] [...

3 months ago | 1 answer | 0

1

answer

Answered
ploting a 2D matrix and adjusting axes
This thing worked for me: clc clear all close all M = zeros(50); % draw lines for y = [20,30] M(:,y) = 1; ...

1 year ago | 0

| accepted

Answered
shortest path in 2D matrix between two coordinate points
This thing worked for me: clc clear all close all M = zeros(50); % draw lines for y = [20,30] M(:,y) = 1; ...

1 year ago | 0

Question


ploting a 2D matrix and adjusting axes
Hello, I have the following code: M = zeros(50) for x = [20,30] M(x,:) = 1 end for y = [13,25,37] for x...

1 year ago | 2 answers | 0

2

answers

Question


shortest path in 2D matrix between two coordinate points
As in the attached image, i have a 2D matrix of 50 by 50. The matrix contains zeros (blue) and ones(yellow). Imagine it as a flo...

1 year ago | 3 answers | 0

3

answers

Answered
Making different combinations from tree branches in matlab
I tried and this code worked for me. for i=1:length(C{1}) combination(i,:)= [{Ap1} {C{1}(i,:)}] end i...

1 year ago | 0

| accepted

Question


making combinations from each leaf to parent node in Matlab
Hello, I have to make all combinations from a tree, starting from parent node and ends at the last leaf nodes. The depth of al...

2 years ago | 1 answer | 0

1

answer

Question


Making different combinations from tree branches in matlab
Hello, I have to make all possible combinations from a tree, starting from parent node and ends at the last leaf nodes. I made a...

2 years ago | 1 answer | 0

1

answer

Question


How to get a matrix with different row lengths?
I have a two dimensional matrix "check" of zeros and ones. I need to check the ones in each row, take the indexes of ones and st...

2 years ago | 1 answer | 0

1

answer

Question


I am writing a code and I get the error 'Operands to the || and && operators must be convertible to logical scalar values'... it is an If statement in multiple loops, when the IF has 4 conditions it works fine but at 5th it gives error..
works fine with other 4 conditions but when I add another that is data{i,4}==Device(dev) it does not work... x=[23:1:36] ...

2 years ago | 1 answer | 0

1

answer