Tariq Hammoudeh
Followers: 0 Following: 0
Feeds
提问
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...
10 months 前 | 1 个回答 | 0
1
个回答提问
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...
1 year 前 | 1 个回答 | 0
1
个回答提问
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,...
1 year 前 | 1 个回答 | 0
1
个回答提问
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...
1 year 前 | 1 个回答 | 0
1
个回答提问
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...
3 years 前 | 1 个回答 | 0
1
个回答提问
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...
3 years 前 | 1 个回答 | 0
1
个回答提问
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...
3 years 前 | 2 个回答 | 0
2
个回答提问
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 ...
3 years 前 | 1 个回答 | 0
1
个回答提问
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...
3 years 前 | 1 个回答 | 0
1
个回答提问
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...
3 years 前 | 1 个回答 | 0
1
个回答提问
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...
3 years 前 | 2 个回答 | 0
2
个回答提问
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...
3 years 前 | 1 个回答 | 0
1
个回答提问
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 ...
3 years 前 | 1 个回答 | 0
1
个回答提问
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...
3 years 前 | 1 个回答 | 0
1
个回答提问
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...
3 years 前 | 3 个回答 | 0
3
个回答提问
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 ...
3 years 前 | 2 个回答 | 0
2
个回答提问
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...
3 years 前 | 0 个回答 | 0
0
个回答提问
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...
3 years 前 | 1 个回答 | 0
1
个回答提问
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...
3 years 前 | 2 个回答 | 0
2
个回答提问
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...
3 years 前 | 1 个回答 | 0