Answered
Getting an error in a listener callback function to trigger an error in/terminate execution of the calling function
Joan - it seems that either the calling function should query the "life" of its objects (check their "heartbeat" so to speak). ...

12 years ago | 0

Answered
How to call mxArray with varargin in C; mxCreateCellMatrix and mxSetCell?
Oyvind- it isn't clear how you are executing the above code. Is it part of a C program that you are running? Where is the func...

12 years ago | 0

| accepted

Answered
First calculating then looping with multiple figures
You could create a cell array of *n* elements and so still keep the data sets distinct. If you are reading from *n* files then ...

12 years ago | 1

Answered
How to feed popupmenu with list of audio device
Zdrapko - you could use <http://www.mathworks.com/help/matlab/ref/strfind.html strfind> to determine where the first open bracke...

12 years ago | 1

Answered
How to pause timer.
Nicholas - rather than using a global variable for your timer, save this object to the *handles* structure so that you can acces...

12 years ago | 1

Answered
find the last non-zero column in matrix in pre-allocated matrix
Mahsa - try using the *any* function to determine which rows have at least one non-zero element as nzRows = any(M,2); *nz...

12 years ago | 0

Answered
How to make Wavelet Toolbox work correctly?
Executing the statement which dwt2 -all returned C:\Program Files\MATLAB\R2014a\toolbox\wavelet\wavelet\dwt2.m % Has ...

12 years ago | 1

Answered
issue with running several sound statements...only last statement will play sound
Franklin - since your four *sound* function calls follow one after the other, all four sounds are playing at roughly the same ti...

12 years ago | 1

| accepted

Answered
How to display the values using isfield, isempty or exist in the GUI?
Manoj - are you saving your variables to the *handles* structure? Because it is this structure that is passed to the different ...

12 years ago | 1

| accepted

Answered
how to create a folder in GUI
Mehdi - you need to describe the steps that the user would follow when using your GUI. Does he/she * select some files for c...

12 years ago | 1

| accepted

Answered
I save a cellarry ,but the result looks like strange
Remember that your strings are just arrays of characters. So when you export the array to file using *csvwrite*, a comma will b...

12 years ago | 2

| accepted

Answered
How to make this code faster?
MJ - what does _it takes forever when my matrices are very large_ mean? Seconds, minutes, hours? Please provide an example of ...

12 years ago | 1

| accepted

Answered
Why won't MATLAB display the new matrix?
Clayton - whenever the user makes a move (so doesn't quit), the code enters an if statement, does some stuff, and then executes ...

12 years ago | 0

| accepted

Answered
Bisection method + Differential equation question
Are you not observing some sort of *Index exceeds matrix dimensions* error? Look at the following lines from your *while* loop ...

12 years ago | 0

| accepted

Answered
How to convert image (bmp,jpg....) to .bin file ?
dao - if you have read the image from file (as a bmp or jpg) using *imread*, then you can use *fopen* and *fwrite* to write the ...

12 years ago | 1

| accepted

Answered
connecting sqllite database from command line
Note the line of code conn = database(dbpath,'','','org.sqlite.JDBC','URL'); The last parameter that is passed is a strin...

12 years ago | 1

| accepted

Answered
Logarithmic, Power, and Exponential Fit
*logfit* doesn't appear to be a MATLAB function (from either the base version or the *Statistics Toolbox*) so you may be referri...

12 years ago | 1

| accepted

Answered
How do I set the number of digits to be entered for input and display an error message if this is not met?
You could use <http://www.mathworks.com/help/matlab/ref/length.html length> to check to see if the user has entered six characte...

12 years ago | 2

| accepted

Answered
Read DICOM images from folder and save them into .mat file?
Assuming you have the *Image Processing Toolbox*, use <http://www.mathworks.com/help/images/ref/dicomread.html dicomread> to rea...

12 years ago | 1

| accepted

Answered
How do you pull data from a text box, and set it to plot?
Grant - presumably you are plotting the result of the calculation on an axes that is a part of your GUI. So in the callback to ...

12 years ago | 1

| accepted

Answered
How to preallocate the arrays(matrix1,matrix2,matrix3) and variables(trapdensitycount,bias,beta1,beta2) in the following question
Look at how you are updating *Matrix1* matrix1=[]; for count2= 1:17 matrix1(:,:,count2) = zeros(length_vec_of_volt...

12 years ago | 1

| accepted

Answered
How to reference an entry in a listbox to a set of values in a table in a guide GUI? Every entry entry in the list box, when clicked should display the corresponding set of values in the table.
You can use the *handles* structure to get access the other widgets/controls from a callback. Usually, this structure is the th...

12 years ago | 0

| accepted

Answered
Rebuilding a user-interactive element when redrawing axes in GUI
Colin - without seeing more code, especially with respect to what the popup menu is doing, it is somewhat difficult to offer sol...

12 years ago | 1

| accepted

Answered
How to save output image
Siam - If you want to use the same image file name (or a variation of it), then try the following - use *fileparts* to get the p...

12 years ago | 1

| accepted

Answered
How to get and residual energy for cluster head and cluster member ?
Arul - why not just add a third column to the *clusterHeads* and *clusterNodes* matrices. From the link you provided, just modi...

12 years ago | 1

| accepted

Answered
[HELP] 2d images to 3d
YJ - if all images are of the same dimension, 768x768, then try the following % pre-allocate (or pre-size) a matrix to store...

12 years ago | 0

| accepted

Answered
Set and enforce axis properties immediately
You mention subplots, but your above code does not show that. What are you iterating over? Does *NUM* correspond to each subp...

12 years ago | 0

| accepted

Answered
Help with textread please
Stephen - what is the format of your file? For example, are all rows the same in that they have the same number of columns? If...

12 years ago | 0

Answered
How do I make an uploaded list of variables names show up in a popup menu?
Hessam - you haven't indicated how you have read (uploaded) the data from file, so I'll assume that you have used something like...

12 years ago | 1

Answered
??? Undefined function or variable 'funfcn'. Error in ==> mini at 1 [y, farr]= uq_dist(funfcn,-20,20,12,1,-5,0.001,0,2,4) EDU>>
Ruqayya - how are you calling *uq_dist*? You have to supply a function handle to some function that is the first parameter to t...

12 years ago | 0

Load more