Answered
Creating a matrix per iteration
Martin - save your output to a cell array which allows for each element to be of a different type or size which is perfect for y...

11 years ago | 1

| accepted

Answered
how to insert an audio file in matlab 2014-a student version?
nalajala - what is the problem or error that you are observing? Your line of code that reads the audio data is incorrect me...

11 years ago | 0

Answered
Problem with fsolve and matlabFunction
Elin - since your function handle *FF* is defined as FF = ... @(x1,x2)[cos(x1).*(-1.273239544735163e2)+cos(x2).*2.546...

11 years ago | 1

Answered
Function isn't returning anything
QingQangQong - note that in your code, you are using *n* as either n==1 or n==-1 The == is used when you want to c...

11 years ago | 1

Answered
Can I run GUI by Matlab Mobile
Congxian - If you look at <http://www.mathworks.com/mobile/frequently-asked-questions.html>, the documentation indicates that ...

11 years ago | 0

Answered
How can I generate the sequence f(n+1) = f(n) + sin(n*pi/2)*(-3) + (cos(n*pi/2)).^2?
James - you say that you have _tried using start:step:end with sin(n*pi/2)*(-3) + (cos(n*pi/2)).^2_. What was the code that you...

11 years ago | 0

Answered
Disp returns all iterations, only interested in using the last iteration/result in further scripting
Janne - put a semi-colon at the end of the line which updates *s* s(i,:) = s(i,:) + (q(i,:)-mean(q)); % note the semi-colon...

11 years ago | 1

| accepted

Answered
How to implement contAcquireNChan.c example from National Instrument with a mex file in matlab 2014b in mac OS
Antoine - how are you building/compiling the above code? The error messages are telling you that you are trying to use function...

11 years ago | 0

Answered
Error in blastscript2_halland (line 60)
Dave - which version of MATLAB are you using? In the Command Window type ver and observe the result. The function <http...

11 years ago | 0

Answered
interactive GUI: pup-up menus, list
Jana - the *_CreateFcn* only gets called when the GUI is launched and the widgets/controls are created. You do not want to be c...

11 years ago | 0

| accepted

Answered
how can k set the initial variable of my vector
mazari - in the line of code neighbour_n(k)= [neighbour_n(k) j]; you are trying to access *neighbour_n(k)* (for *k* equal...

11 years ago | 1

| accepted

Answered
Working with Image Stacks (or Arrays)
Jason - are all images of the same dimension? If not (and even if they are) it may be easier to just use a cell array. If you...

11 years ago | 0

| accepted

Answered
Can someone explain why this code doesn't have the desired output?
Flannery - as MATLAB uses *i* and *j* to represent the imaginary number, please use a different indexing variable (say *k*) so t...

11 years ago | 0

Answered
How to activate a toggle/pushbutton as long as the mouse button is pressed, and deactivate it when released ?
Eshwar - you can create function callbacks for the mouse down and mouse up events (within a figure) and have them fire whenever ...

11 years ago | 3

Answered
FullScreen of a Figure with no Borders and Toolbar
Fed - according to <http://www.mathworks.com/matlabcentral/answers/102219-how-do-i-make-a-figure-full-screen-programmatically-in...

11 years ago | 3

| accepted

Answered
error in multiply a square wave and Fresnel function and plotting it...
Tulika - why not include the error message? If I try to run the above code, I observe Error using plot Vectors must be th...

11 years ago | 0

| accepted

Answered
I can't get dicomdict to work
Dan - <http://www.mathworks.com/help/images/ref/dicomdict.html dicomdict> is part of the *Image Processing Toolbox*. To see if ...

11 years ago | 0

| accepted

Answered
how do i get a image which is present at the axes in gui?
Anamika - how did you load the image into the first axes? If you are using GUIDE, you can save the image to the *handles* struc...

11 years ago | 0

| accepted

Answered
how to deal with MEX
Soon - you need to select a MEX compiler before you try to build/compile a MEX function. In the Command Window type mex -se...

11 years ago | 1

| accepted

Answered
read and display data from cell array to static box of GUI
Mohammad - you need to remove the single quotes from around your call to get the first of element of *stu* else the code will ju...

11 years ago | 0

Answered
DDPSOLVE not enough input arguments question
econfreak - how are you calling this function? The error message is telling you that you have not provided enough input argumen...

11 years ago | 0

Answered
Pop-Up menu help
Vlad - assuming that you are using GUIDE to create your GUI, suppose your five popup menus are named *popupmenu1*, *popupmenu2*,...

11 years ago | 1

| accepted

Answered
Using GUI, use one push button as an image browser and another to process the image that was chosen?
Sean - <http://www.mathworks.com/help/matlab/ref/image.html image> is the name of a built-in MATLAB function so it is not a good...

11 years ago | 1

| accepted

Answered
How to vectorize loop of fft ?
Ole - is this something that you need to vectorize or just simplified? If the above is a valid example with all elements of *W*...

11 years ago | 1

Answered
character to variable that already exists in the workspace
Ziv - use *sprintf* to "concatenate" the number to the string. Try for k=1:21 str = sprintf('score%d',k); end *s...

11 years ago | 0

| accepted

Answered
About Coulomb 3.4 software
Ruken - the function <http://www.mathworks.com/help/map/ref/deg2km.html deg2km> is part of the *Mapping Toolbox*. Do you have i...

11 years ago | 0

| accepted

Answered
Replicate a density plot?! How To?
David - remember what the density function is. If you look at the minimum and maximum of the *S* array you will notice that the...

11 years ago | 0

| accepted

Answered
Saving / Showing Value of Variables in Genetic Algorithms
Marc - according to <http://www.mathworks.com/help/gads/ga.html Genetic Algorithm>, all you need to do is include the *output* v...

11 years ago | 0

Answered
Creating an array that contains recordblockings
Andrés - even though each iteration records only one second of audio data, it may be that each recording is of a different lengt...

11 years ago | 0

Answered
pass image in GUI to another window
Shaimaa - see this similar question <http://www.mathworks.com/matlabcentral/answers/146215-pass-data-between-gui-s> with an answ...

11 years ago | 0

Load more