Answered
How to build a shared library using the mex command on OS-X and Linux?
Duane - if you look at the function declarations in the header file, do you see something similar to #define MY_FUNC_API __d...

12 years ago | 0

Answered
How to create this function?
Sam - just go into the MATLAB editor and create a new file whose first line is function readc3dFiles and copy and paste y...

12 years ago | 1

| accepted

Answered
programmatic GUI callback function
Akshata - what is the error message? Note that if you are trying to get the current value of the slider, you could try using ...

12 years ago | 1

| accepted

Answered
Try to store data in 2 for loops
Sam - use the subject number in our output image name. Something like pngFileName = sprintf('plot_subject%d_trial%d.png', w...

12 years ago | 1

| accepted

Answered
i have a proplem with some matrix
Ali - if you assume that all elements in your matrix are positive, then you could use the <http://www.mathworks.com/help/matlab/...

12 years ago | 0

Answered
Accessing the annotation handle
Samik - it seems that annotation objects (like the one that you have describe above) are children of a hidden axes named *scribe...

12 years ago | 5

| accepted

Answered
Using a main GUI window to open new ones
Mahbube - if you are launching a second GUI from the first, via a pushbutton callback in the first GUI, then just <http://www.ma...

12 years ago | 0

Answered
tables/matrix with characters and numbers
S - a cell array would allow you to mix the number if with alphabetic data, but trying to access the *Italy* data and *dog* data...

12 years ago | 2

Answered
find the coordinates of an image
Ramesh - if the right-hand image is a binary image of 0's and 1's, then can't you get the rows and columns (y and x coordinates ...

12 years ago | 1

| accepted

Answered
i got this code from mathwork.......and i m getting this error "Function definitions are not permitted in this context". Please help m
Tripti - note the lines of code just after the file header comments clc; clear all; close all; im=imread('E:\project d...

12 years ago | 2

Answered
Synchronize/show variables in workspace with GUI
Leon - you could add a timer to your GUI that periodically checks the workspace for the three variables, updating the GUI window...

12 years ago | 1

| accepted

Answered
String for pushButton GUIDE GUI - using Greek letters
Muaaman - try using the following (unsupported) code that may do what you want. If your push button is tagged/named *pushbutton...

12 years ago | 1

Answered
black box function export in MATLAB
Davide - consider using <http://www.mathworks.com/help/matlab/ref/pcode.html pcode> which _obfuscates the code in fun.m and prod...

12 years ago | 1

| accepted

Answered
Output of For-loop in 1 file
Sam - you need to use *Afstand_1schrede* as an array rather than a scalar. Try the following % create the 1x5 array Afsta...

12 years ago | 1

Answered
What is the square symbol in text?
Norris - try converting the text string (from the original file with the squares) to an array of 8-bit unsigned integers so that...

12 years ago | 1

| accepted

Answered
problem with solving overlapping sounds
Gino - the error message is telling you that there is no field named *Beginning* in your structure *obj* which you try to access...

12 years ago | 1

Answered
how to pass a variable into imadjust?
Manoj - why are you creating a string as lowContLimit=sprintf('%d',lowerContrast); and trying to pass that into the *imad...

12 years ago | 0

| accepted

Answered
Update plot data when HOLD ON is active
Matthew - if you keep track of the handles to the graphics that you plot on the GUI axes, you can then delete them at a later ti...

12 years ago | 1

Answered
Taking every nth element from each column in a matrix
Henry - try grabbing every other row as B = A(2:2:end,:); In the above we use *2:2:end* to start at row two and consider ...

12 years ago | 23

| accepted

Answered
Dear Friends, please help me in finding (matlab code) the inverse of this matrix. F=[ 1 1 -1 -1; -a b c d; e -f -g h; j k l m]. where a, b, c etc are constants.Best Regards.
Hassan - if you are looking for the algorithm to determine the 4x4 matrix inverse, then see the notes from <http://www.euclidean...

12 years ago | 1

Answered
Using GA and NN to find a cat face inside an image, problem in custom population and fitness function
Mohamed - the error message is telling you that there is something wrong with your function to generate the populations and so t...

12 years ago | 1

| accepted

Answered
Recording Videos using two webcam simultaneously for 60sec
Rohan - try to figure out where the delay is coming from. If you were to comment out the lines that convert the images to frame...

12 years ago | 1

Answered
Bar graph plotting problem in GUIDE GUI (previous resolution didn't work; code shown)
Muuaman - in your above code, there is a line that creates a new figure. And so the bar graph will be drawn on that figure and n...

12 years ago | 0

Answered
using discrete cosine transform to break 16x16 to 8x8 blocks
Jarvan - you mention that the error message is Error in imcompress (line 6) ,i = j(1:size(1),1:size(2),c) but you haven'...

12 years ago | 0

| accepted

Answered
Full Matrix Multiplication Vectorization
Will - if you have an *else* statement that does nothing, then there is no need to include it. With that in mind, you could red...

12 years ago | 0

Answered
Problem in converting SVD written in C to Mex
Hariprasad - why have you changed the code to access elements in the 2D arrays (matrices) in a different manner? You should be ...

12 years ago | 1

Answered
my code gui error
Tanachaporn - the error message is telling you that the function *height_bear_CreateFcn* cannot be found. Did you perhaps delet...

12 years ago | 1

| accepted

Answered
Reading cell array strings into GUI edit text box
Stephen - a very simple example would be to set the *edit10* text control to multiline and then try the following example in the...

12 years ago | 1

| accepted

Answered
decimal to binary conversion without using dec2bin or de2bi
Harish - one (not so efficient) way is to check each bit in the unsigned integer. If it is a one, then write a one to your stri...

12 years ago | 1

Answered
Plotting results one at a time like simulation
Nikola - there are probably several ways to do this, so here is one that you should be able to adapt for your purposes. Suppose...

12 years ago | 1

Load more