Answered
hi everyone i just want to know how to take input from the user that which frame user wants to process from a certain video
Umair - how do you wish to ask the user which frame she or he wishes to process? You can make the request in the Command Window...

10 years ago | 0

Answered
Have any command for copy variable without loop.
Ranjan - try using <http://www.mathworks.com/help/matlab/ref/repmat.html repmat> to repeat the copies of your arrays. Your abov...

10 years ago | 0

| accepted

Answered
How to show 8 bits of an image like this photo?
Shimaa - if we assume that the image is 8-bit (unsigned integer) and is grayscale (like in your attachment) and that it is two-d...

10 years ago | 0

| accepted

Answered
Multiple options for if/elseif/else statements?
Dalton - the first thing that you might want to do is to cast the "weapon" selected by the user and the random integer to be the...

10 years ago | 0

Answered
Decrypting a message without knowing the key?
Brian - the above code is near identical to that posted at <http://www.mathworks.com/matlabcentral/answers/251932-decrypting-a-m...

10 years ago | 1

Answered
Searching and summing array
Fischer - think about how you would do this by hand. You would start with the first element of *A*, 'K1', and then look at each...

10 years ago | 0

Answered
passing variables between .m files using GUI
Ahmad - you can easily make data available in other callbacks by using the *handles* structure (which is passed as the third par...

10 years ago | 0

| accepted

Answered
Error using getframe.
Hariharan - rather than using 1 as an input to *getframe*, why not try using <http://www.mathworks.com/help/matlab/ref/gcf.html ...

10 years ago | 1

Answered
Decrypting a message in matlab?
Nick - in the future, please tag your questions as *homework*. Note your condition if number_message(k)>=65 && number_messa...

10 years ago | 0

| accepted

Answered
Perform summation on a cell array according to a equation
Karthik - if we assume that all elements in your array are in units of decibels (which you have stated in your previous question...

10 years ago | 0

Answered
fread + double-precision 8-byte floating point + precision
Farz - if the data type (within your file) is _double-precision 8-byte floating point_, then why not just use _double_ or _float...

10 years ago | 1

| accepted

Answered
can't get my ploy function to plot all the vectors at once
Henry - you need to add a <http://www.mathworks.com/help/matlab/ref/hold.html hold on> statement to your code so that subsequent...

10 years ago | 0

Answered
Logarithmic summation of cell array
Karthik - sometimes it helps to use the MATLAB debugger and step through the code to see what is happening at each line. Though...

10 years ago | 0

| accepted

Answered
Summing elements within an eval statement, in a for loop
Abhi - since you are summing elements on each iteration of a *for* loop, you would need to do something like N = 10; utota...

10 years ago | 1

| accepted

Answered
"Undefined function or variable "o1Bound" " whereas that variable have been used in another function and it works, how can I fix this error ?
Faza - the scope for the variables *o1Bound* and *01Area* is local to the *btn_direction_Callback* function only and so are not ...

11 years ago | 0

| accepted

Answered
Cannot access protected property?
Jeroen - I think the problem is that you are trying to access the protected member of the derived class from the _base_ class. L...

11 years ago | 0

| accepted

Answered
In a given number of trials, I need to get the first and last number of rolls whose value is defined by the user.
Seelam - you should be able to use <http://www.mathworks.com/help/matlab/ref/find.html find> to get the first and last index (ro...

11 years ago | 0

| accepted

Answered
How to pass value of a variable from one push button to another in matlab guide
Pavikirthi - in the callback for your first pushbutton, update the *handles* structure with the value of the variable that you w...

11 years ago | 0

| accepted

Answered
Why is cos_orbit(0,25) not working?
Kameron - your assignment is telling you to create a <http://www.mathworks.com/help/matlab/ref/function.html function> called *c...

11 years ago | 0

| accepted

Answered
what is function of break in this example?
Gauri - <http://www.mathworks.com/help/matlab/ref/break.html break> is used to terminate execution of the *for* loop. In this c...

11 years ago | 0

Answered
Encrypting a message in matlab?
Nick - look closely at your *for* loop for k=1:1 *k* is only ever going to be one. You need to iterate over each element...

11 years ago | 0

| accepted

Answered
How to manipulate a handle with a function
Peter - why not just pass in the handle to the text control that you wish to update on each iteration of the outer *for* loop? ...

11 years ago | 0

| accepted

Answered
How can I get MATLAB to output a part of a dat file the proper way?
Ruten9 - why not try using <http://www.mathworks.com/help/matlab/ref/importdata.html importdata> where you can specify the delim...

11 years ago | 0

Answered
How to Iterate over the columns of a Matlab table?
Ciaran - <http://www.mathworks.com/help/matlab/matlab_prog/access-data-in-a-table.html#zmw57dd0e22735 access data in a table> il...

11 years ago | 3

| accepted

Answered
How to do scatter plot with markers with dashed outlines?
Given the documentation found at <http://www.mathworks.com/help/matlab/ref/scatter.html scatter>, drawing a marker with a dashed...

11 years ago | 1

| accepted

Answered
How to make a graph from each row of data?
Ellis - if you wish to create a new figure for each new "graph" that you plot, then just iterate over each row of *E* (and subse...

11 years ago | 0

| accepted

Answered
Continuously Polling Data in Matlab GUI
Torsten - one way in which you can achieve what you (probably) want is to create a timer that periodically polls your sensor and...

11 years ago | 0

Answered
shannon_fano recursion error
Maheen - executing recursive functions can be tricky if you don't code the appropriate stopping condition. Without such a condi...

11 years ago | 0

Answered
Insert a string into code
ly - if the idea is to replace the 'name' substring within 'name_v1.txt' with 'time', then you could use <http://www.mathworks.c...

11 years ago | 0

| accepted

Load more