Top 5% contributor
4 years ago
How to declare a variable global in base workspace?
Answered 4 years ago
I have to run three functions or programs on a quad core processor such that function1 is run on core1 of the processor and func...
Asked 4 years ago
I want to run two functions in parallel on a GPU. For this i want to use pafor(eg: for ii=1 fun1 and ii=2 fun2).
I want to run a signal through bandpass filter, but the data is sent one by one.
Can a parfor loop be used in side a for loop.
I want to run a series of iterations with parfor inside the for loop. How to do t...
I am running a program in GUI.It contains a for loop. One of the parameters in the program is controlled by slider. While inside...
I want to plot any four graphs from the menu of 7 options in a GUI on the same window. How to do that??
I want to use global variables in the functions run in parallel using parfor. Is it possible?
I have generated a variable in a program and want to use the same variable from workspace in other program. I dont want to use i...
I want to run two functions on two cores of my dual core processor.
The functions are independent of each other.Is it possible...
I would like to know how to plot a graph in a GUI like a scope or moving graph as the data point is simulated inside a for loop....
I have a graph in which i want to highlight a point by 'o'.I want to highlight the point to see if the chosen values are in the ...
I have 3 programs to run in parallel, each on one core on my quad core processor. For this i'm using jobs and tasks method.
When a batch job is given, how many workers work on the job(if i have 4 labs)?? And at a instant how many batch jobs can be give...
Check if sorted.
Input x = [1 2 0]
Output y is 0
3 years ago
Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice.
Given an unsigned integer x, find the largest y by rearranging the bits in x.
Input x = 10
Output y is 12
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...
Calculate the nth Fibonacci number.
Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ...
Regardless of input, output the string 'yes'.
For instance, if the input is
input_str = 'The flowers may bloom in April';
then the output is
output_str = 'The flo...
Given the number x, y must be the summation of all integers from 1 to 2^x.
For instance if x=2 then y must be 1+2+3+4=10.
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for.
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend you select United States from the following list:
See all countries