Answered
show final result of MATLAB at a table
Sama - if you are using MATLAB version R2013b or greater, then you can use the <http://www.mathworks.com/help/matlab/ref/array2t...

12 years ago | 1

| accepted

Answered
I get error using plot, vectors must be same lengths and error in midpt (line 27), plot (x,If)? Integral code works fine, was just trying to plot a graph too..
Thomas - the error is telling you that your *x* and *If* vectors are of different lengths and so cannot be plotted against each ...

12 years ago | 1

| accepted

Answered
How to convert double-precision array to table?
Joao & Ricky - if you check the documentation, you will note that the function *array2table* appears in version R2013b. So if y...

12 years ago | 2

Answered
How to skip the first row while reading a textfile?
TP - try using <http://www.mathworks.com/help/matlab/ref/importdata.html importdata> and specify the number of header lines (in ...

12 years ago | 0

| accepted

Answered
Saving/Working with variables using loop index?
Cris - from your code it appears that you are trying to create a variable called *A1* as A1 = data1 + 6; and do the same ...

12 years ago | 0

Answered
error LNK2019, 3 unresolved external symbols
Matthew - if you have other C files that have the function bodies for those function prototypes/signatures of *dp_grid.h*, then ...

12 years ago | 1

| accepted

Answered
Make a logical loop with string?
Ivan - your use of *strcmp* is not quite correct. To compare whether the orientation is either Cor or Sag, you would need to do...

12 years ago | 1

| accepted

Answered
how to make passing parametes between GUI and *.m files
Fitroh - why not just pass the list of videos to your *setupSystemObjects* function (which is presumably saved to a file called ...

12 years ago | 0

Answered
Warning when using 'Box','off' in legend and the box of the legends keeps showing!
Mohammad - the line of code legend('sin','cos','Location','North','Box','off') seems to be considering the final two inpu...

12 years ago | 0

| accepted

Answered
How to restart the loop if players go bust
Robert - you could wrap the majority of your code in a *while* loop so that once the player goes bust (or I suppose wins) you co...

12 years ago | 0

Answered
How to store a data of a structure into a text file.
Priyanka - if you just want to write the structure to file, then just try using *fopen* to open the file, *fprintf* to write the...

12 years ago | 0

| accepted

Answered
I want to export matlab output to an excel file starting from G2 column and for this the code i had written is exporting the data correctly but not to the desired location .It is printing in 21st number of rows rather than 2nd.
Himakshi - what is *sz*? From your code, it appears to be the number of rows in the data *ResultFile*. You then create a varia...

12 years ago | 0

| accepted

Answered
How to change the name of the program, and GUI.fig
Ahmad - open the GUI in GUIDE, and then select *Save As…* from the *File* menu.

12 years ago | 8

Answered
display img from function in gui
Lukasz - if you want the image from the pre-processing part of the *ocr1* function to appear in a specific axes, then pass the a...

12 years ago | 0

Answered
what is usage of due variable in amortize function?(amortize of a financial tool box)
xorso - according to the documentation for <http://www.mathworks.com/help/finance/amortize.html amortize>, *due* is an optional ...

12 years ago | 0

Answered
Error 'vectors must be all the same lengths'
John - the error is occurring because the vector *temp2* has 6 elements whereas the vector *depth2* has only five elements. Sin...

12 years ago | 0

Answered
Got an error using ode45 - FUNC1 must return a column vector
Serbianu - the error message is telling you that the function *func1* must return a column vector. From your code, the vector *...

12 years ago | 1

| accepted

Answered
A problem in MATLAB OOP documentation
Jack - I think that the purpose of this attribute (if set to true) is to allow handle subclasses derived from *Utility* to be c...

12 years ago | 0

| accepted

Answered
Input argument 'x' is undefined
Nishant - from your question it seems that you have a function called *getData* in a file called *stripfunc.m*. Is the function...

12 years ago | 2

Answered
What is the difference between opening a GUI from Guide and just double clicking it in my workspace
Kevin - when you double-click on the GUI fig file, it opens and displays all of the controls and that is it. Opening the GUI in...

12 years ago | 0

Answered
Hi guys could you please help me in this if i could make loop like? I have attached m file too.
Daya - look at your *while* loop conditions while E_11>Err % etc. while E_1>Err % etc. end ...

12 years ago | 0

| accepted

Answered
Accessing an actxserver COM object with a GUI
Dmitry - if you wish to use the same code in your GUI, then instantiate the *cameraHandle* in the *_OpeningFcn* of the GUI, save...

12 years ago | 0

| accepted

Answered
How to create a UITABLE in GUI using a data from matlab variable workspace
Nik - you could put this code in either the *_CreateFcn* for the uitable, or the *_OpeningFcn* of your GUI. If the former, then...

12 years ago | 0

| accepted

Answered
NaN elements during table data input - Matlab GUI
Peter - how are you creating the new row? Is each element (of it) a cell string or an empty matrix? If I create my new row lik...

12 years ago | 1

| accepted

Answered
How to find value of modifier with keypressfcn?
Lyn - look closely at your if/elseif if strcmp(eventdata.Key,'tab') handles.a = handles.a + 1 elseif strcmp(eventdata...

12 years ago | 0

| accepted

Answered
Take input and use it in a function
Ahmad - please clarify what you mean by _it doesn't seem to work_. Are you observing an error or are you not getting the correct...

12 years ago | 2

| accepted

Answered
Pol2cart function giving wrong cartesian values, why?
Akintomide - you may need to provide an example of the code not working. Remember, according to <http://www.mathworks.com/help/...

12 years ago | 1

Answered
sending content of variable via email
AA - try using <http://www.mathworks.com/help/matlab/ref/sendmail.html sendmail>. See the gmail example at this link. If you w...

12 years ago | 2

| accepted

Answered
Question about the axis of a figure
Sam - you will need to maipulate then ticks and tick labels for the x-axis. Try running the following statements xticks ...

12 years ago | 1

Answered
Need help with this bisection method code!
Johan - for the *while* condition, you probably want the absolute value of the difference to handle the case where the roots cou...

12 years ago | 3

| accepted

Load more