Question

How to code so that the person can not press enter to continue?

So i have this for loop with an if statement into it. I have a few questions in my code but you seem to be able to by pass getti...

2 months ago | 1 answer | 0

Question

How do i make input correct to be both lower and uppercase?

I need to find out how to make this if statment to accept the imput as capital or lower case c. Could someone please help me ou...

2 months ago | 1 answer | 0

Question

How to Substitute an array into an equation and solve it ?

So if i had a = [1 2 3] b = [4 5 6] c = [7 8 9] and the equation is ax^2+bx+c = 0 How would i substitude the array and solve f...

2 months ago | 1 answer | 0

Question

How to i make it display correct for the right answer?

diagonal = true; for index = 1:1 disp(' straight , sideways , diagonal') x = input(' Which way does checker ...

2 months ago | 1 answer | 0

Question

How to find the max number in a structure array?

I am trying to get it to find the max lucky number but instead of diplaying the number i would i it to diplay the name witht the...

2 months ago | 1 answer | 0

Question

How to use a for loop to create a table to display special characters.

I need to get the rest of the numbers and characters in between? for t = 1 between = (180:1:200); char = char(between);...

2 months ago | 1 answer | 0

Question

How to find a the point where the loop is broken?

I need to find where the diffence starts to be less then 0.01 which should me n = 12 But i can't seem to make it show up by it...

3 months ago | 1 answer | 0

Question

creating a loop to generate a plot

I don't quite undertsnad this question could i please get some help? Create a for loop to generate the first 20 terms of the ...

3 months ago | 1 answer | 0

Question

How to form an array with the input values

%How would i form an array if i had 5 inputs like this of random number % displayed at the end. clc,clear x = 12; num = 0...

3 months ago | 1 answer | 0

Question

How do I make my vector length even?

How would i make line x vectors to be even to the rest. To form three different lines on the graph. Also how do you make the poi...

3 months ago | 1 answer | 0

Question

Checkerboard coloring and pieces

Hell, i need some help to make my checker board colors match and how to places peices on there. This is what i got so far. And...

3 months ago | 0 answers | 0

Question

fprintf table not aligned

My fprintf table has two numbers off that i can't seem to fix. Here is my work table = [r' c' a' s' v']; fprintf('%5.2f\t%5....

3 months ago | 1 answer | 0

Question

How to find all the numbers greater than in a certain column then all the columns

I need some help to find out how to use find to determine all the numbers greater than x in a column. Example y =[1 5 9 13 ...

3 months ago | 1 answer | 0

Question

Creating a function called z

No iputs or outputs then display ASCII art art ----- ;)

4 months ago | 0 answers | 0

Question

Creating functions with certain inputs but no outputs

How to create a function called x with two inputs. Two variables x and y then display the sum, difference , product and quotient...

4 months ago | 1 answer | 0

Question

how to create a matrix from another

How would i create a matrix that is the last column and the 2nd and 4th row of matrix x?

4 months ago | 2 answers | 0

Question

How can i sort all the rows of a matrix but one along a row

How would i sort a 15 x 5 matrix descending based on the 5th column without changing the first column.

4 months ago | 1 answer | 0

Question

Adding matrix to another matrix

How would add a matrix to the back of another matrix to form another column. example [1 4 5 6 + ...

4 months ago | 1 answer | 0

Question

Finding the max of certain columns

I have a 4x7 matrix and i am trying to find the max of the 2nd 3rd and 4th column to create a 1x3 matrix how would i do that?

4 months ago | 1 answer | 0

Question

Creating matrix with other matrix

How would you create matrix using three other matrix but extracting certain columns out of each one? a = [1 3 5 ...

4 months ago | 1 answer | 0

Question

How to get a matrix random to use from a function?

I used perms(1:3) how would i get one matrix of random such as [1,3,2] so i can use it? example- I have three eggs and i nu...

4 months ago | 1 answer | 0

Question

How to create all possible outcome of a set amount of variables?

So i have 3 numbers from 1-3. How would i create a matrix of all the possible outcome without repeating the number in each matri...

4 months ago | 1 answer | 0

Question

Looping prompt till answered correctly

I need to set a limit so the number that is inputed can not be 9 or under. with a loop that will display the prompt again if you...

4 months ago | 1 answer | 0