answersLogoWhite

0


Best Answer

Please ask clearly what you want to do with the image and explain why a nested for-loop is necessary.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you use nested for loop on the image in matlab?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why you use inner loop and outer loop?

Sometimes you have to use nested loops, in this case one of them is the outer, the other is the inner.


Why not to use nested for loops 3 times?

You never want to use nested loops if you can avoid it. Each additional level of loop you add increases the work done by your program exponentially. There are certain cases where this is unavoidable, of course. For example, iterating over objects in 2D or 3D space can require many levels of nested loops.


Why are nested for loops used in java?

Nested loops can be used in any language. They are used for situations where you may need two levels of repetition. So you could be printing a list of teams, which is one loop, and for each team the name of its players, and that would be the inner loop. If you know there is a set amount of players and teams, a For loop would be appropriate. You could have a loop that displays the 7 days of the week and for each day, the on the hour times, so that would require two For loops with the hours one nested in the days one. There are all sorts of situations where you would use them.


To get output in form of nested loop?

A nested loop is just one loop within another. The most common use of this is to read from or write into a multi-dimensional array. Example (in C-style pseudocode): int[][] array = some collection of data for( int i = 0; i < array.length; ++i ) { // loop through first dimension for( int j = 0; j < array[0].length; ++j ) { // loop through second dimensionprint array[i][j]} }


When do you use the nested if?

we use "nested if" if we have to test a large number of possibilities and trials i an if statement.


How do you find the average of rows and columns in a 2d array in java?

You add up all the array elements, then divide by the number of elements. You can use a nested for() loop in Java; inside the inner for() loop, you can both increase a counter (to count how many elements there are), and add to a "sum" variable.


How do you implement awgn in MATLAB without using awgn function?

no way... use awgn function in matlab


How do you find repeated integer number in the array in java program?

The most simpliest way is to use a nested loop. However this runs in O(N*N) time. For small arrays, this should be sufficient.


How does the for loop work in c?

For loop is "Counter controlled loop" i.e. a counter or control variable is used to process the for loop , as discussed in earlier chapters.For loop is an "Entry controlled loop" i.e. the condition to iterate the loop must be check at the starting of the loop and loop body will not execute if the condition is False. Source website:http://codedunia.in/c-language/for-loop-in-c-programming.php


How is one dimensional and two dimensional arrays read and written?

You go through all the elements of an array with a loop - or, in the case of a 2-dimensional array, with two nested loops. If you have a 10-dimensional array, you would use 10 nested loops. In any case, one variable to keep track of the position for each dimension.


Can you use nested printf?

printf ("nested printf returned %d\n", printf ("inner printf\n"));


How do you modulate in matlab without using matlab tools?

You would have to write your own code for a modulation (Matlab has a convolution function not in the tools), otherwise you can use its built in function in the signal processing toolbox.