Community Profile

photo

singh


Active since 2015

Statistics

  • Thankful Level 3
  • Knowledgeable Level 1
  • First Answer

View badges

Content Feed

View by

Question


how to plot node in particular range but x and y lim is 1000x1000
bs=4; area=1000; X_coord=rand(1,bs)*area Y_coord=rand(1,bs)*area if ((X_coord<=100)&(X_coord>=880)) X_co...

circa 7 anni ago | 0 answers | 0

0

answers

Question


how to solve this problem when i install rasberry pi package in matlab 2014
<</matlabcentral/answers/uploaded_files/33072/Untitled.png>> any other alternative for installation the package in matlab 201...

oltre 7 anni ago | 0 answers | 0

0

answers

Question


how to plot the data on the iamge
n=5 x=rand(1,n)*n; y=rand(1,n)*n; node_no=(1:n)'; plot(x,y,'color','k') text(x,y,num2str(node_no)) how to plot the node...

oltre 7 anni ago | 1 answer | 0

1

answer

Question


how to get the time long after decimal point
format longg t=clock; t1 = t([5,6]); this code output is min(21) sec(19.955) now i wish to get after d...

oltre 7 anni ago | 2 answers | 0

2

answers

Question


how to stop the working of format longg after some line execute in matlab
format longg t=clock; T1=(t([5,6])) CT=text(X6,Y6,num2str(N3),'FontWeight','bold','fontsize',12,'color','...

oltre 7 anni ago | 1 answer | 0

1

answer

Question


how to reuse the line after delete or hide
suppose i plot line BK=line([X,DCH_coord(1)],[Y,DCH_coord(2)],'marker','*','MarkerSize',10); BK2=line([XX,DCH_coord(1)],...

oltre 7 anni ago | 2 answers | 0

2

answers

Question


how to hide line in gui
i wish to hide line on 2d graph plot([nodes(i,2) nodes(j,2)],[nodes(i,3) nodes(j,3)],'k.-') <</matlabcentral/answers/u...

oltre 7 anni ago | 1 answer | 0

1

answer

Question


how to share node table with neighbours node
hello friends i have multiple nodes on 2d graph and my question is how the nodes are share the table with neighbor node like AOD...

oltre 7 anni ago | 1 answer | 0

1

answer

Question


how full square matrix first column as second column in matlab
hello guys i have a full square matrix wish to use this matrix first column as a second column and second column as third col...

oltre 7 anni ago | 1 answer | 0

1

answer

Question


how to full square matrix first column as second column and so on
first column of full square matrix as second column and second column as third column DG2 = 7.2263 36.234 ...

oltre 7 anni ago | 0 answers | 0

0

answers

Question


how to use the figure instead of biograph in graphshortestpath
in graphshortestpath biograph is not work proprly please tell me how to use the figure instead of biograph when i used gra...

oltre 7 anni ago | 1 answer | 0

1

answer

Question


how to cell array data in single matrix
suppose i have an cell array code and output of this cell array is below code= b=cat(2,indx,nonzeros(a)); c{i}=b; ou...

oltre 7 anni ago | 1 answer | 0

1

answer

Question


how to store eculidean distance in the cell array after every iteration
i know the coordinates of the node and i calculate the distance between two nodes.but i have some problem to store the result in...

oltre 7 anni ago | 1 answer | 0

1

answer

Question


find the nearest neighbour from source node to destination node
hello guys, i wish to find the only one less cost path to reach the destination node through neighbor nodes.

oltre 7 anni ago | 1 answer | 0

1

answer

Question


how to connect nearest neighbor node between source node to destination node
<</matlabcentral/answers/uploaded_files/31331/2d%20image.jpg>> N=20; area=100; XX=area/2; YY=area/2; bs=[XX,YY]; X...

oltre 7 anni ago | 1 answer | 0

1

answer

Answered
combination of first row of G1 and first row of G2 until row13 of G1 and row13 of G2.
j=reshape([[G1]';[G2]'],1,[])

oltre 7 anni ago | 0

Question


how to send a message (five characters) to another node if i know the coordinates of that nodes
suppose i know the coordinates of two nodes on the 2d graph now i wish to send a message to hello source node to destination nod...

oltre 7 anni ago | 0 answers | 0

0

answers

Answered
how i can get the first and second letters in cell data
for k=1:length(letters) f(k)=letters{k}(1) g(k)=letters{k}(2) end

oltre 7 anni ago | 0

Question


how to delete the plotted particular coordinate from 2d graph
N=20; area=100; X=rand(1,N)*area; Y=rand(1,N)*area; XX=area/2; YY=area/2; plot(XX,YY,':o','LineWidth',3,'MarkerEdgeColor'...

oltre 7 anni ago | 1 answer | 0

1

answer

Question


how to find the index value
suppose i have on matrix A A= 2 3 5 7 8 10 i have another matrix B B= 10 21 ...

oltre 7 anni ago | 1 answer | 0

1

answer

Answered
Combine two cell array of different dimension
A = {1,2}, B={3;4;5} vertcat([A]',B) ans = [1] [2] [3] [4] [5]

oltre 7 anni ago | 1

Question


how to get coordinate a point in 2d grid if i know the avg speed of that point
suppose i have plotted a point on 2d graph and i know the avg speed of this point and after one minute I wish to know the coordi...

oltre 7 anni ago | 1 answer | 0

1

answer

Question


how to add value after every 5 second
hello friends i wish to add a number after every five second for the one minute suppose i wish to get random number from -2 t...

oltre 7 anni ago | 2 answers | 0

2

answers

Question


add the particular column in the for loop
hello friends, i wish to sum the column of the array which are present in the for loop suppose iteration 1 is running and i...

oltre 7 anni ago | 2 answers | 0

2

answers

Question


how to get the array values using as index of another array values
N=10 for i=1:N format shortg tmp = clock; out(i,:) = tmp([5,6]) end in_zone=nonzeros(zone); out = ...

oltre 7 anni ago | 1 answer | 0

1

answer

Question


how to select particular cell in the cell array and particular column in that cell array
X2=horzcat([XY2{3}]); d=X2(:,4); any one can solve in single line

oltre 7 anni ago | 1 answer | 0

1

answer

Question


how to gave the column name in the cell array
hello friends, please give me some solution for write the column name in the cell array. if it is possible otherwise this wh...

oltre 7 anni ago | 1 answer | 0

1

answer

Question


how to add array after the iteration
i have two array which are used in the for loop and after iteration of for loop one array will be empty and another array have s...

oltre 7 anni ago | 0 answers | 0

0

answers

Question


how to take in array last two unit of time (minute,seconds)
for i=1:4 for i=1:10 format shortg t=clock; t1=t([5,6]); t2(i)=t1 end end this upper code doe...

oltre 7 anni ago | 0 answers | 0

0

answers

Question


how to cell array all data into a matrices
A=CHM(cellfun(@(x)~isempty(x),CHM)) A = [1x4 double] [19] [1x4 double] [1x4 double] A{:} ans = ...

oltre 7 anni ago | 1 answer | 0

1

answer

Load more