Community Profile

photo

roshan varkey


Active since 2013

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


how to label a point on a graph?
for an assignment after plotting a line on a graph ,i have been asked to label two point 'A' and '4'.I couldnt find anything in ...

10 years ago | 1 answer | 0

1

answer

Question


i have a some problem with the code i wrote for a while loop and cant't figure it out.can someone look at it and tell me where i went wrong?
i have attached a file with the code in it,this is only a small bit of my batlleship game code. i this attached code,i have a m...

10 years ago | 0 answers | 0

0

answers

Question


how to check if two arrays intersect within a matrix?
i have a 10x10 matrix of zeros. three ships called destroyer,aircraft_carrier and cruiser: destroyer=[2,2] %placed eithe...

10 years ago | 1 answer | 0

1

answer

Question


help with a matlab code
i have this particular code: Board = zeros(10); ALPHArange = 'A':'J'; Drow = ALPHArange(randi(numel(ALPHArange))); ...

10 years ago | 1 answer | 0

1

answer

Question


how to prevent interesection of arrays within a matrix?
sorry the question is a bit abstract .i am making a battleship game on a 10x10 matrix. the user has to type in coordinate in (al...

10 years ago | 0 answers | 0

0

answers

Question


how to avoid intersecting array within a a matlab?
sorry the question is a bit abstract .i am making a battleship game on a 10x10 matrix. the user has to type in coordinate in (al...

10 years ago | 0 answers | 0

0

answers

Question


how to perform matrix manipulation for a game of battle ship?
sorry the question is a bit abstract .i am making a battleship game.on a 10x10 matrix.the user has to type in coordinate in (...

10 years ago | 1 answer | 0

1

answer

Question


how to randomly generate an alphabet within a given range ?
i want to randomly generate an alphabet between a given range,for example a range of A-J,and i want matlab to pick a alphabet be...

10 years ago | 4 answers | 1

4

answers

Question


how to add headers to a matrix?
i have a matrix 10x10 of zeros under the name play_space......and i would like to name the rows A-J and columns 1-10,so the when...

10 years ago | 1 answer | 0

1

answer

Question


for a battleship program:how to place a ship of given unit length randomly on a matrix of 10x10?
i g=have to make a battleship game in matlab using matrices. i made a grid using play_space=zeros(10) i made a ship destro...

10 years ago | 1 answer | 0

1

answer

Question


for a battleship program:how to place a ship of given unit length randomly on a matrix of 10x10?
i have to make a program for the game battleship (computer vs user) and i made a matrix and ships of different unit lengths: ...

10 years ago | 1 answer | 0

1

answer

Question


how can i place an array a= [2,2,2] randomly (vertically or horizontally) into a matrix b=zeros(10x10) ?
how can i place an array a= [2,2,2] randomly (vertically or horizontally) into a matrix b=zeros(10x10) ?

10 years ago | 1 answer | 1

1

answer