Community Profile

# Sohaib Bin Altaf

10 total contributions since 2017

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

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

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

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

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

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

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