Community Profile Aidan Palermo

Last seen: 1 month ago Active since 2021

Statistics

• Content Feed

View by

Question

can a random number generator be used in a matrix?
I'm trying to make a minesweeper game in matlab so I set up a matrix A=zeros(10) and I wanted to know if I could write the code ...

2 months ago | 1 answer | 0

1

Question

how to find the length of interpolated graph?
I created a graph that would go through these specific x and y values using the interp1 function. now I can't figure out how to ...

2 months ago | 1 answer | 0

1

Question

error in creating rock, paper, scissors game
%game conditions user_play = input('chose R for rock, P for paper, S for scissors:'); %randomness for comp_play = randi(im...

4 months ago | 1 answer | 0

1

Question

trying to find theta
% plot mountain Mn_x = [0, 1000, 3014.8]; Mn_y = [0, 0, 616]; plot (Mn_x, Mn_y) hold on % known variables Xo = 0; Yo = 1;...

4 months ago | 1 answer | 0

1

Question

how to calculate theta
theta = 0:1:90; 3010 == Xo + (V .* cosd(theta)) .* t I'm trying to calculate the angle needed to travel 3010 ft but I keep g...

4 months ago | 1 answer | 0

1

Question

graph won't plot in correct spot
% plot mountain Mn_x = [0, 1000, 3014.8]; Mn_y = [0, 6, 1000]; plot (Mn_x, Mn_y) hold on % known variables Xo = 0; Yo = 1...

4 months ago | 1 answer | 0

1

Question

No data points appear on the graph when I hit run
figure (1) %selects plotting window #1 plot(0, 98, 'c--', .02, 245, 'c--', .04, 490, 'c--', .05, 735, 'c--', .06, 931, 'c--', ....

4 months ago | 1 answer | 0