Community Profile

Contact

Top 5% contributor

26 views

0

3 years ago

How to declare a variable global in base workspace?

Answered 3 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...

2 Answers

Asked 3 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). Can variable...

1

I want to run a signal through bandpass filter, but the data is sent one by one. t=0:0.0000001:1; a=sin(2*pi*250...

1 Answers

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?? Thanks!!

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. Aft...

sched=findResource('scheduler','type','local'); pjob=createJob(sched); createTask(pjob,@decoder_direction_and_count_with_fm_...

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...

f=10000; tmax=.01; t=0:1/f:tmax; [m n]=size(t); y=randperm(n); a=sin(2*pi*400*t); b=sin(2*pi*400*t+pi/2); ...

Check if sorted. Example: Input x = [1 2 0] Output y is 0

Solve this!

*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

Given an unsigned integer x, find the largest y by rearranging the bits in x. Example: 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, ... Examples: Inpu...

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. Examples: fin...

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

Load more