Magdy Saleh
Active since 2018
Followers: 0 Following: 0
Statistics
All
RANK
3,667
of 293,499
REPUTATION
14
CONTRIBUTIONS
0 Questions
5 Answers
ANSWER ACCEPTANCE
0.00%
VOTES RECEIVED
1
RANK
of 20,033
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
Answered
How to create a matrix with the same number in every few rows?
Create a 250 by 250 matrix: A = zeros(250) And then to fill any 50 rows with a particular number: A(1:50,:) = 1...
How to create a matrix with the same number in every few rows?
Create a 250 by 250 matrix: A = zeros(250) And then to fill any 50 rows with a particular number: A(1:50,:) = 1...
6 years ago | 0
Answered
A = [ 1 2 1;1 3 1;1 4 1;2 5 2;3 5 3;4 5 4] ; For above matrix first i need out put like all possible path like 1-2-5 and its total weight (1+2 =3); path 1-3-5 and its total weight (1+3 = 4), Path 1-4-5 and its total weight (1+4 =5);
You can try this: A = [ 1 2 1;1 3 1;1 4 1;2 5 2;3 5 3;4 5 4]; cntr = 1; path = []; for i = 1:length(A) ...
A = [ 1 2 1;1 3 1;1 4 1;2 5 2;3 5 3;4 5 4] ; For above matrix first i need out put like all possible path like 1-2-5 and its total weight (1+2 =3); path 1-3-5 and its total weight (1+3 = 4), Path 1-4-5 and its total weight (1+4 =5);
You can try this: A = [ 1 2 1;1 3 1;1 4 1;2 5 2;3 5 3;4 5 4]; cntr = 1; path = []; for i = 1:length(A) ...
6 years ago | 0
| accepted
Answered
How to separate connected image objects
There are two approaches you can take here, either you write a script that changes the pixel values for the line given you know ...
How to separate connected image objects
There are two approaches you can take here, either you write a script that changes the pixel values for the line given you know ...
6 years ago | 0
Answered
Storing while loop values in a vector?? Error
It might be easier here to use a cell array as such fid = fopen('example.txt'); sample={}; %empty matrix count=1; ...
Storing while loop values in a vector?? Error
It might be easier here to use a cell array as such fid = fopen('example.txt'); sample={}; %empty matrix count=1; ...
6 years ago | 0
| accepted
Answered
how to make my code simpler ?
Try something like: for i=1:num_elems %assuming you know the number of elements and have set it before hand eval(['TB...
how to make my code simpler ?
Try something like: for i=1:num_elems %assuming you know the number of elements and have set it before hand eval(['TB...
6 years ago | 1
| accepted