Answered
How to set the default corner for origo in imagesc?
Merse - do you just want to reverse the order of the y-axis so that zero (along y) is in the bottom left corner? Or do you want...

12 years ago | 1

Answered
How I setup Visual studio 2010 Express in Matlab 2013b (32bit)
Alberto - according to <http://www.mathworks.com/support/compilers/R2013b/index.html?sec=win32 2013b supported and compatible co...

12 years ago | 0

Answered
Duplicate plots into subplot
Consider using <http://www.mathworks.com/help/matlab/ref/copyobj.html copyobj> which will allow you to copy a graphics object fr...

12 years ago | 5

| accepted

Answered
Undefined function 'rows' for input arguments of type 'double'.
Tim - the *rows* function of the *Database Toolbox* is to be used with a database cursor only where it is _specified as an open ...

12 years ago | 1

Answered
Collect data from button response
Chelsea - you haven't said what your error is, only that you are trying to collect the keyboard input and that presumably it isn...

12 years ago | 0

| accepted

Answered
how do i choose material in command window?
Mike - if you are requesting that the user enter a string, then you need to include the 's' option so that the input is not eval...

12 years ago | 1

Answered
Undefined function 'graydiffweight" to calculate weights for image pixels
Reema - *graydiffweight* appears to be a new function in R2014b and is not present in R2014a. See the <http://www.mathworks.com...

12 years ago | 1

| accepted

Answered
stored character string to character matrix by using loop
Jarvan - you should avoid using *class* as a variable name since it conflicts with a MATLAB built-in function of the same name. ...

12 years ago | 0

| accepted

Answered
how can i combine contents of two cell arrays into one cell array of same length
Joshua - I think that your solution works well. An alternative is the following Excell = mat2cell(cell2mat([Bill , Ted]),[1...

12 years ago | 0

| accepted

Answered
Understanding the code dlmwrite
Akmal - see the link <http://www.mathworks.com/help/matlab/ref/dlmwrite.html dlmwrite> for details on this function. The *a* is...

12 years ago | 0

| accepted

Answered
Write Cell Array of Strings to Text Document
John - your *formatString* is initialized as formatString = %s\t%s\t%s\n So it is expecting three string inputs but...

12 years ago | 0

Answered
listing of file using num2str
Chiranjibi - your code seems to be producing a distinct file name at each iteration of the *for* loop, though depending upon the...

12 years ago | 0

Answered
Create matrix from a 1xk vatrix without loop for FFT?
Umair - try using <http://www.mathworks.com/help/matlab/ref/arrayfun.html arrayfun> to create the columns of your matrix given t...

12 years ago | 0

Answered
In an assignment A(I) = B, the number of elements in B and I must be the same? While Loop
Nancy - if nothing is in front of the sensor, then (as you say) nothing is being read. So you need to guard against the case wh...

12 years ago | 0

| accepted

Answered
How to Delete Numorous Large Portions of an Array
P - it seems that you have the right idea in creating the vector *ind* of indices that you wish to remove. Try the following lo...

12 years ago | 0

Answered
Taking difference of adjecent elements by seting a custom order
Ali - you could create two vectors of indices that you can then use to perform the subtraction. One vector would be all indices...

12 years ago | 1

| accepted

Answered
Help with Vectorization of array operation
Jeremy - it may be helpful to provide a typical set of inputs to your *LPhiReinit* function so that we can test out the function...

12 years ago | 0

Answered
I calculate a simple 2x2 Inverse, it differs in MEX equivalent...
Lars - you may want to include your entire MEX function as well as the input 2x2 matrix that you are using which led to the perc...

12 years ago | 0

Answered
memory leak in C Mex file
Francesco - it may be more helpful to include the complete MEX function. Just attach it to your question using the paperclip bu...

12 years ago | 0

| accepted

Answered
how do I get this loop to run and get the cost for each of these?
Steve - look at your input request for the type of service service=input('enter type of service(ground,express,or overnight,...

12 years ago | 0

Answered
Writing a function including text keep getting an error
Alice - I think that you are missing a *for* loop from each block of your code (this sort of seems true due to the indenting of ...

12 years ago | 0

| accepted

Answered
Regexp to extract all characters in a varied string up to match.
Marshall - if all of your target strings (the csv filenames) have an open bracket *(* in them, and you want all the characters b...

12 years ago | 2

| accepted

Answered
How can I disable the call of a function?
Óscar - if you want to disable the callback then you should just "remove" it, and then "add" it back when it is required. Given...

12 years ago | 0

| accepted

Answered
Java code to Matlab
Christopher - I am not all that clear on what you mean by _to void the variables w and a_. Your MATLAB function signature would...

12 years ago | 0

Answered
Matlab can't show image after drawing a shape using shapeInserter
Gianfranco - according to <http://www.mathworks.com/help/images/ref/imshow.html imshow>, _an RGB image can be uint8, uint16, sin...

12 years ago | 0

Answered
Extracting N amount of rows from Excel
J - re-read the first question. It is asking you to _determine the dimensions of the dataset_. Consider doing this using the <...

12 years ago | 0

Answered
Trouble with pointers in MEX file
Alex - the errors, *subscripted value is not an array, pointer, or vector*, at lines 80 and 81 of the code toggle[i] = toggl...

12 years ago | 2

| accepted

Answered
Convert the mxn size Matrix to square Matrix without using loop or if
David - if you want to convert your (say) 4x6 matrix into a 4x4 by removing the first two columns, then you could do something l...

12 years ago | 0

| accepted

Answered
Undefined function for input arguments of type 'double'
Stefania - in the Command Window, type which doamne -all to find the path to your *doamne* function. Perhaps you have na...

12 years ago | 2

| accepted

Answered
how to read csv file with header in matlab 2006
Rosna - have you tried *csvread* and starting at the first row that doesn't correspond to the header? For example, if your file...

12 years ago | 0

Load more