Answered
Output showing used cells?
Robert - create a logical matrix outside of the *for* loop and update it at each iteration according to whether there is a NaN i...

12 years ago | 0

Answered
I get this error please help: 'Operands to the || and && operators must be convertible to logical scalar values"
Ruben - your inputs to the *BinaryAdd2* function, *B1* and *B2*, must be strings representing binary numbers. So what you are t...

12 years ago | 1

Answered
How to sum 20 images in a loop
Ivan - as all of your images are already of dimension 500x500, what is the *imresize* supposed to accomplish since the code seem...

12 years ago | 2

| accepted

Answered
remove last line data file
Antoine - if you are interested in removing the last line from the file (which includes non-numeric text), then try using <http:...

12 years ago | 1

| accepted

Answered
fitness function for Genetic Algorithms with two variables
Mohamad - the error message is telling you that not enough input arguments are being supplied to your fitness function, which is...

12 years ago | 0

| accepted

Answered
Calling .mat file into function
Fatema - see the <http://www.mathworks.com/help/matlab/ref/load.html load> function for details on loading a mat file.

12 years ago | 0

Answered
Subscript indices must either be real positive integers or logicals.
Alyna - the error message is telling you that an index into an array must be a positive integer or logical. In your case, you a...

12 years ago | 0

| accepted

Answered
Problem in linsolve , the equation on the left side not accepted
Farzad - see the documentation for <http://www.mathworks.com/help/matlab/ref/linsolve.html linsolve>. If you are trying to sol...

12 years ago | 2

| accepted

Answered
How to obtain real time analog data and store it in an array?
Srinidhi - how many of these voltages to you expect to acquire? if you need to store the value in an array, then you can do so ...

12 years ago | 2

| accepted

Answered
Extracting non-alphabets from a string
Raunak - when I run your above code I either see (for the first case) just the output of 56, and in the second example, a value ...

12 years ago | 0

Answered
over-lapping & adding [FFT] - Error - Index exceeds matrix dimensions
Maith - if I run your code as a function (named *g13.m*) or as a script, I observe the following error Index exceeds matrix ...

12 years ago | 2

| accepted

Answered
importing a csv file into matlab automatically after it gets changed
AA - try creating a function as follows (saving this to file as *importfcn.m* or as a nested function within your other code) ...

12 years ago | 1

Answered
Define field in operations with polynomials
Julie - the error message is telling you that the *field* parameter, the third input to this function, must be a positive prime ...

12 years ago | 1

Answered
Passing a String from Matlab to a Fortran Mex Function
Hi Rick - the *revord.F* example does a decent job of describing the steps to read the input string. It can be opened in your e...

12 years ago | 0

| accepted

Answered
Why my Gui does'nt do the Graphic?
Jesuel - put a breakpoint at the first line of your *Botao_Simular_Callback* and launch your GUI. Do all the necessary selectio...

12 years ago | 1

Answered
Plot is making marker at origin
Jared - are *x1*, *y1*, *x2*, *y2* scalars or vectors? If they are vectors, then you could very well be replacing the original ...

12 years ago | 0

| accepted

Answered
Using eval - REALLY need help please
Alyna - perhaps all your professor wants you to do is assign this heart rate vale to a variable if the same name. If you were t...

12 years ago | 1

| accepted

Answered
I keep getting an empty cell, how can I get a cell with a value in it for this problem?
Have you stepped through the code to see what is wrong? I think that you are supposed to check whether the start and finish of ...

12 years ago | 1

Answered
Need help to plot sawtooth wave Matlab
Jeff - I think that it is almost the sawtooth just missing an amp/2 factor which you then subtract the above sum from. See <htt...

12 years ago | 1

| accepted

Answered
Error checking in a matrix
Carsten - just do something similar to what you have already, but opposite. [r, c] = size(m); if ~isempty(find(m(1,:)==-...

12 years ago | 1

| accepted

Answered
How can I read a .wav file and save it with other name by 2push buttons?
reza - you may want to describe what error you are getting (and where) but presumably it is in the *Saveb_Callback* function bec...

12 years ago | 1

| accepted

Answered
How to change wavrecord to audiorecorder ?
Poison - just replace your line of code x=wavrecord(Fs,Fs); with the following % create the recorder recorder=audio...

12 years ago | 1

| accepted

Answered
converting matlab output to txt format
Iamawal - if you have a program to find the log of the average signal energy for 20 audio files, then you must be using a *for* ...

12 years ago | 1

Answered
How to get rid o such type of errors "Undefined function 'ocr' for input arguments of type 'uint8'".
The function <http://www.mathworks.com/help/vision/ref/ocr.html ocr> is part of the *Computer Vision System Toolbox*. In the Co...

12 years ago | 2

Answered
How can I create a button that says yes & no?
Hermione - try using <http://www.mathworks.com/help/matlab/ref/questdlg.html questdlg> to create a question with the yes or no a...

12 years ago | 2

Answered
How to automatically generate rows in uitable from edit box?
Nik - if we assume that your edit box is named *edit1* and your table is named *uitable1*, then in your edit box callback, you c...

12 years ago | 1

Answered
How to call a function with a GUI push button
Matthew - if your image is being displayed in a specific axes (say named *axes1*) of the GUI, then you can get that data in the ...

12 years ago | 2

| accepted

Answered
Problem with a callback function that checks user input
isdapi - why not first convert the input to a number and then decide what to do? If the string contains invalid characters, the...

12 years ago | 0

| accepted

Answered
I have a problem with some code of GUI
Farjana - save *m_length* to the *handles* structure using *guidata* so that the other callback can access this data. For examp...

12 years ago | 0

Answered
i wrote GUI with 2 pop up menus
Abdulla - I suspect that, for whatever reason, none of the conditions are being satisfied in your *if/elseif* code that would se...

12 years ago | 0

Load more