Answered
Help with function putting a matrix into upper triangluar form.
Marc - you probably need to post the code for your three functions as one of them may be causing a problem. If I take your code...

12 years ago | 1

| accepted

Answered
Importing data from Microsoft Access w/ SQL query
Jared - look at the two queries (as strings) >> A = 'MKT'; >> query1 = ['select Period,Ticker from MonthlyReturns wher...

12 years ago | 0

| accepted

Answered
How can I find the symbol given the gene id?
S - <http://www.mathworks.com/help/matlab/ref/lookfor.html lookfor> is used to search for a keyword in all help entries, not to ...

12 years ago | 0

| accepted

Answered
How to format Excel
Khairul - please review the documentation/usage for the <http://www.mathworks.com/help/matlab/ref/xlsread.html xlsread> function...

12 years ago | 1

Answered
How can I save the handles of a GUI in other .m file?
Óscar - you have to be careful with the line of code set(handlesStacked(:),'ButtonDownFcn', {@axes2_ButtonDownFcn, handles})...

12 years ago | 1

| accepted

Answered
Help with writing a function
Florin - one thing to be aware of is that you have defined your output parameter as *x* but at no time do you ever assign anythi...

12 years ago | 0

Answered
How can i execute a GUI from a .m script?
Brian - have you created your GUI through GUIDE or built it yourself using a script? Either way, you will have an m file which ...

12 years ago | 5

| accepted

Answered
converting a minute chart
AA - suppose I just have a smaller matrix/table of 100 rows and 6 columns, created as oneMinTbl = randi(255,100,6); Presu...

12 years ago | 2

| accepted

Answered
Percentage from two text file and send to axes in GUI.
Akmal - if we assume that your two commas separated data files are of the same size (identical number of rows and columns), then...

12 years ago | 1

Answered
How to find a structure point with two fields x and y and then find the distance between two points
Iris - I think the first step is to define the point structure/object as something like pointA.x = 12; pointA.y = 32; w...

12 years ago | 1

| accepted

Answered
problem with play, not stopping @ 10 seconds
James - the reason that the audio isn't stopping after ten seconds is because your *player* has been declared as a global variab...

12 years ago | 2

| accepted

Answered
How to create an optional input parameter with special name?
Why not just call your optional third parameter as *param3* and then check to see if it has been passed in or not? If the latte...

12 years ago | 24

Answered
how to solve this error,??? Input argument "alpha" is undefined. Error in ==> newvod3RL at 6 alphaINT = (real(alpha)>0) .* ceil(real(alpha)) + ...
naeem - how are you calling this function, *vod3RL*? Are you supplying three inputs as result = vod3RL(t,in,alpha); wher...

12 years ago | 1

| accepted

Answered
reshaping a matrix: adding rows and changing the selected elements of the original matrix
Jan - you could try using *arrayfun* to apply a function to each value in the first row, building a column for each. Perhaps so...

12 years ago | 0

| accepted

Answered
the range i need for my graph plot is from -10 to 10,but it seems like i cant use a negative number.help?
Ernest - you seem to be only using your interval of [-10,10] for the indexing variable *count*, which is used to update elements...

12 years ago | 0

Answered
Error in fsolve r2014b
Kasper - please verify that you have the *Optimization Toolbox* on this version of MATLAB by typing *ver* in the Command Window ...

12 years ago | 0

Answered
Given a table, how can I find corresponding values for a given element?
S - you may want to consider using *strfind* instead of *strcmp* as the former will search/match on a substring rather than do a...

12 years ago | 1

Answered
calculation within a matrix
AA - if *A* is your matrix, then the calculation that you wish to perform could be written as B = (A(:,7) - A(:,1))./A(:,3);...

12 years ago | 1

| accepted

Answered
plotting the recorded sound while recording
Huseyin - yes, you can do what you want using the *audiorecorder* and a timer function that could fire every one second and proc...

12 years ago | 2

| accepted

Answered
Sub GUI does not work?
Giorgi - are you using GUIDE to create your GUIs, or are you creating them manually? If the former, then you can communicate be...

12 years ago | 0

| accepted

Answered
Indexing multiple values of an array of structures with a field that varies in length
John - why not use <http://www.mathworks.com/help/matlab/ref/arrayfun.html arrayfun> to grab the last element of each structure ...

12 years ago | 1

| accepted

Answered
Using time derivative dot in plot legend
Simon - you could set the legend string using the LaTeX "code", and then change the *Interpreter* property of the legend to *lat...

12 years ago | 3

Answered
Write a cell array to a .csv file
Damith - see <http://www.mathworks.com/help/matlab/import_export/write-to-delimited-data-files.html#br2ypq2-1 Export Cell Array ...

12 years ago | 2

Answered
GUI Popup Menu and Listbox Default
Scott - if you want the (default or user-selected) values from the list box and popup menu to be used in the code/program, then ...

12 years ago | 2

| accepted

Answered
Update automatically edit box when user enters values in other edit boxes
isdapi - if you use the same callback function for each of your four edit boxes, and nest this function within your main code, t...

12 years ago | 1

| accepted

Answered
error LNK2019 when trying to use C++ program of CurveLab-2.1.3
Mariem - I think that the problem has to do with the *libfdct3d.a*. The command that was used to generate the same MEX file on ...

12 years ago | 2

Answered
How can i make a 3d conical helix plot itself slowly?
Fredrik - you can iterate over each element in *x*, *y*, and *z* and either plot the new points, or just update that which has a...

12 years ago | 1

| accepted

Answered
How to separate characters from words and write both of them to matrice when reading from text file
Tural - you could try using <http://www.mathworks.com/help/matlab/ref/regexp.html regexp> to split the string into its letter an...

12 years ago | 0

Answered
How to save vectors made by a for-end loop?
Skylar - you could create a vector, outside of the *for* loop, that would be used to hold all of the first and last indices/appe...

12 years ago | 0

Answered
How to fix the scaling of axis?
Mahesh - try using <http://www.mathworks.com/help/matlab/ref/ylim.html ylim> to set the y-axis limits. In your case, the code w...

12 years ago | 2

| accepted

Load more