Community Profile

photo

Tariq Hammoudeh


Last seen: etwa 2 Monate vor Aktiv seit 2021

Statistiken

  • Thankful Level 3

Abzeichen anzeigen

Content Feed

Anzeigen nach

Frage


ESP32 connection on Mac
Is connecting an ESP32 to MATLAB actually possible on Mac, because everytime I try to configure it using the MATLAB support pack...

etwa 2 Monate vor | 1 Antwort | 0

1

Antwort

Frage


Can I have multiple tiled layouts
Can I have more than tiled layouts and edit their position on the screen. I need 3 different tiled layouts positioned left midd...

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


how to create a figure that includes a table
if I have the folloowing table: number=[1;2;3;4;5]; data=[34;39;41;22;19]; subData=[0.5;0.7;0.9;1;1.1]; answer=table(number,...

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


How can i integrate an array using the trapz function
If i have the following data time=[1 2 3 4 5] %time in seconds acceleration=[1.1 1.2 1.3 1.4 1.5] Then how can I integrate ac...

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


how to add numbers above the tips of a bar chart
I have an array b=[ 1 2 3] then i use bar(b) now how can i write the value of each bar (so the elements of the array) over e...

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How can I make randi() in a loop not choose the same number
I have an array x=zeros(1,36) then i have inside a while loop: while .... y=randi(length(x)); z=randi(length(x)); How c...

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


detecting elements change in an array
I have an array of zeros: x=zeros(1,36); and in my program i change some elements of it to 1 using for example x(6)=1; N...

etwa 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Im using randsample() but im getting an error
Im using randsample to make the program choose a random element from an array, A=[2 3 4 5]; random=randsample(A,1) but im ...

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How can I loop an if statement
Im designing a game of battleship and I have the following code to prevent ships from overlapping. x=zeros(1,36); starting...

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


I have a gridded figure with 2 "game boards" , but they don't look the same
I have the following code to plot a figure with 2 game boards, for a battleship game: subplot( 2, 1, 1 ); set( gca, 'XTick...

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Im designing a game of battleship, but. im trying to use a code to prevent the user from placing a ship out of bounds
in my game of battleship the board is 6 by 6, so when the user wants to place a (1X2) ship on grid 6 and chooses a horizontal or...

etwa 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Problem with an if statement
I have this code: orientation= input (' enter v or h') if orientation == v ...... end but whenever i run the code and e...

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


I have this function but whenever I call it using its name, I get an error
I am building a game of battleship, and i have this function to create a figure for the boards. now when ever i try to ...

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


how can I plot a game board in a figure
Im programming the game battleship, and i need create a figure 2, 6 by 6 boards (one for the user and one for the computer). I w...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How can I make the program count the number of decimals of an inputted amount
I have this code: withdrawAmount = input ('Enter amount to Withdraw '); . . . . . Is there anyway the program could cou...

mehr als 2 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


how to use a while loop for switch case
I have this code: transactionType= input('1:withdraw 2:deposit 3:account balance 4:end use'); switch transactionType case ...

mehr als 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


getting a number from a text file
I have txt file with 1 number inside only, nothing else. is there a way to get that number as a variable so that i can use an i...

mehr als 2 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


how to use ismember() to check if an inputted number exists in a matrix.
I have a csv file named "NaiveBankData.csv" (attached) and i imported it, then read it as a matrix, but now how can i check if a...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


I'm using textscan to read in a csv file, but when I check the variable its incorrect
im trying to read in a csv file(attached) using the code below, but then when i click on the variable from the workspace I don...

mehr als 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


I have a .csv file with a list of numbers, what code can I use to check if an inputted number exists in that file.
I have a .csv file that contains a list of account numbers. How can i check if an inputted number exists in that file. so for ex...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort