Question
Learning about find in matLab I'm stuck on these last two questions becuase I'm not sure how to make it work when it starts with two.
Check Show answer 4) Identify by number the rows in the 2D array matrixA that start with 2. Use the find function. rowsNumber
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution-

Answer 4)


find(matrixA(:,1)==2)

Answer 5)

matrixA(rowsNumbersStartWith2, :)

Add a comment
Know the answer?
Add Answer to:
Learning about find in matLab I'm stuck on these last two questions becuase I'm not sure...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Download the Array.mat file and save it in your current MATLAB directory (make sure it is...

    Download the Array.mat file and save it in your current MATLAB directory (make sure it is in the correct folder). At the command prompt, type >> load Array. Look in your workspace window. You should see a 1-d array called vector (1x12), and a 2-d array called matrix (10x5). All of the following problems refer to the arrays vector and matrix downloaded from the Array.mat file. Don’t change the values in vector or matrix unless prompted. If you do inadvertently...

  • need help with question number 2. I'm not sure how to use a indexSeq to find...

    need help with question number 2. I'm not sure how to use a indexSeq to find the third smallest element instead of using a sortRowEx Given rowEx = randi(100,1,10); [ sortRowEx, indexSeq ) = sort(rowex); 1) Using the array sortRowEx, complete the statement to retrieve the value of the 3rd smallest element in rowex thirdsmallest - Check Show answer 2) Using the array indexSeq, complete the statement to retrieve the 3rd smallest element in rowex Incorrect indexSeq contains the indices...

  • I'm trying to enter gram schmidt into matlab for C but it doesn't work. can anyone help please it...

    I'm trying to enter gram schmidt into matlab for C but it doesn't work. can anyone help please it work for B for me but i don't how to get C. pretty much I'm trying get C equation into a calculator if that make sense. Chapter 4.4, Problem 22P (1 Bookmark) Show A=a Therefore ATb ATA Now Ab [ 1 21 0 Therefore B=b-0 0 And, Are , Be AAB' B Now Clear Favorites Show kyle Clear Feedback History Commands*...

  • I need a matlab code to answer the questions below ICE09B Make an Array Develop a...

    I need a matlab code to answer the questions below ICE09B Make an Array Develop a MATLAB code which will produce an array that looks like the following: 4 10 1. You must start with a blank array and build the array with a DNFL. You can NOT just load the array with an assignment statement. Hint: Use "addition" for your variables Square all values in the array 2. Blackboard will ask you for a screenshot of your properly working...

  • Problem 1 In this problem, you will write two functions. The first function takes in a...

    Problem 1 In this problem, you will write two functions. The first function takes in a string and returns that string without any dashes. The second function takes in the first and last name and returns a string that is lastname_firstname and uses the previous function to remove any dashes (-) in the name. Note that you’ll be testing it by calling it from the command line; you’ll call it from a script in problem 3. Deliverables: Function file that...

  • write a Matlab program ( solve the three questions). please use array and create your own...

    write a Matlab program ( solve the three questions). please use array and create your own function to check primality Question 1 : [10 points) Write a MATLAB program that will store all the first 1000 prime numbers in an array variable named arr_of_primes. Please note that a prime number is a positive integer that is bigger than or equal to 2 which is divisible only by 1 and itself. Examples of the first 8 primes are: 2, 3, 5,...

  • Need help. Stuck and not sure how to finish this program. I'm using MatLab R2016a and...

    Need help. Stuck and not sure how to finish this program. I'm using MatLab R2016a and would appreciate any help. Thanks. In this project, you will perform transient analysis on a L 3 cm steel cube. The steel has the following properties: k 50 WImK, p 7800 kg/m3, cp 500 J/kgK. The cube is initially at a uniform temperature of 800 deg C, then is dropped into an oil bath at To 40 deg C. I. Create a program that...

  • I'm working on the newton's method on matlab, could someone help me and show what two...

    I'm working on the newton's method on matlab, could someone help me and show what two lines are needed to be added in the codes in order to make this function work? function sample_newton(f, xc, tol, max_iter) % sample_newton(f, xc, tol, max_iter) % finds a root of the given function f over the interval [a, b] using Newton-Raphson method % IN: % f - the target function to find a root of % function handle with two outputs, f(x), f'(x)...

  • Help with Flowgirthim . Use the flowgorithim app to answer. In this program you find the...

    Help with Flowgirthim . Use the flowgorithim app to answer. In this program you find the average of an array. You will need 4 functions in total. Main function: Just call the other functions and declare an empty array of size 5. Output the sum of the array, the average of the array, and output the array. inputArray(real array): Prompt the user for input and store information in the array and return the array. Make sure you make the parameter...

  • can u please on matlab, i have the solution on paper. [30pts] Write a robust, efficient...

    can u please on matlab, i have the solution on paper. [30pts] Write a robust, efficient MATLAB script to find the eigenvalues and eigenvectors of a 2 x2 matrix input by the user. You should test out your script using the following matrices. 1::)-::) 3 2 3 1 B. 1 2 C 2 3 A- D- 4 1 2 4 4 8 -3 8 You may not use any special MATLAB tools. Instead, work symbolically and derive general expressions for...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT