Answered
How to call a function on "dbstop if error"
Hi, why not using try/catch? function myFunction() try x = 1; y = 2; z = xy; % I will fail. Af...

13 years ago | 0

| accepted

Answered
Error in compilation - Matlab - Java exception
Hi, sounds like this: <http://www.mathworks.com/support/solutions/en/data/1-LI67CH/index.html> Are you tryting to compi...

13 years ago | 0

| accepted

Answered
Friday Fun with EVAL()
Hi Sean, Why using "eval" and not "inline" on the post processed user input string?

13 years ago | 1

Answered
To find intersection point of two lines ?
Hi, not sure if I understand correctly what you want but is this what you are looking for? %line1 x1 = [7.8 8.5]; ...

13 years ago | 10

| accepted

Answered
loadlibrary Problem: Reference to non-existent field 'The system cannot find the path specified. VSINSTALLDIR'.
Hi, should be a "&" in your environment Variable PATH: <http://www.mathworks.com/support/solutions/en/data/1-IFA0ZS/index....

13 years ago | 0

| accepted

Answered
Create GUI for WinXP from7
Hi, I guess you compiled in a 64bit MATLAB? This will lead to a 64bit exe which won't run on a 32bit system. You would nee...

13 years ago | 0

| accepted

Answered
how i can use symbolic variables in embeded matlab block in simulink?
Hi, try at the top coder.extrinsic('syms') <http://www.mathworks.com/help/simulink/slref/coder.extrinsic.html> May...

13 years ago | 0

| accepted

Answered
How can I rotate a curved rectangle?
HI, so you have a set of points (x,y) describing a curved rectangle. I guess the keyword here is rotation matrix: <http://...

13 years ago | 0

Answered
GetVariable from function in visual basic script
Hi, when I do this it works fine: Set ml = CreateObject("MATLAB.application") ml.Execute ("z = rand(1)") ...

13 years ago | 0

| accepted

Answered
Program works in 2008 but not in 2012
Hi, seems like a DLL cant be found from the JAVA code. I guess you modified the librarypath.txt in 2008 in order to add the ...

13 years ago | 0

| accepted

Answered
undefined symbole '_mclInitializeApplication_proxy@8' reference in .c
Hi, specifying the path to the lib file is not enough. You need to explcitly state the mclmcrrt.lib for the linker and also t...

13 years ago | 0

| accepted

Answered
passing unicode string from C mex function to Matlab
Hi, at least the doc states that the mxChar type is 2 byte: <http://www.mathworks.com/help/matlab/apiref/mxchar.html> W...

13 years ago | 0

| accepted

Answered
How do I create a function that takes a character array (s) as an input and returns a new character array with each letter shifted forward once in the alphabet?
Hi, you maybe need to think about the letter z/Z, but in general you can do: function s = shiftletters(in) s = ch...

13 years ago | 1

| accepted

Answered
Avoid adding MATLAB to the PATH for Engine applications
Hi, yes that possible but more a C/C++ question rather than MATLAB. You would need to look up HKEY_CLASSES_ROOT\MATLAB.Applic...

13 years ago | 2

| accepted

Answered
is 'continue' in 'c' language similar in MATLAB??
Hi, yes continue in MATLAB is the same as in C. However when I look at that while loop: while j<=n if j==...

13 years ago | 1

| accepted

Answered
libpointer.Value => The datatype and size of the value must be defined before the value can be retrieved.
Hi, I guess you need to use setdatatype (take a look at the doc to get more information about that function). But I guess you...

13 years ago | 0

Answered
R2013a and Microsoft Visual Studio 2012 Pro
Hi, please contact the Technical Support. It seems to be a known issue with VS 2012 and MATLAB R2013a. In the mean time, u...

13 years ago | 0

| accepted

Answered
How to tell Matlab to give real cube roots instead of complex ones?
Hi, seems more like MATLAB is converting your symbolic expression into a complex double value. So what are you doing with the...

13 years ago | 0

Answered
Error building with JA Builder
Hi, please setup up JAVA_HOME only. Remove the JAVA entry from PATH. On my machine my JAVA_Home points to: JAVA_Home=C:\...

13 years ago | 0

| accepted

Answered
Code completion/hints for Java methods in MATLAB editor?
Hi, not that I know off, but you can use the methodsview function for that: >> a = java.lang.String('hallo') a...

13 years ago | 1

| accepted

Answered
how to use mesh to plot 3D image
Hi, the problem is that the plot in the book is not really correct. The funtion is a discontinoues function. All points with ...

13 years ago | 0

| accepted

Answered
Matlab Compalier dll error
Hi, you either need a.) The MCR for that particular version or b.) You install the MATLAB version in which the application wa...

13 years ago | 0

| accepted

Answered
Delete double cell array entries
Hi, one line: NewCellArray = cellfun(@str2num, unique(cellfun(@num2str, CellArray,'UniformOutput',false)),'UniformOutpu...

13 years ago | 0

Answered
Does this code crash your matlab?
_ *UPDATE*_ *It seems to be related to the renderer. Setting the renderer to opengl makes it work fine. ZBuffer seems to h...

13 years ago | 0

| accepted

Answered
Using find with a vector without having to use a for loop
Hi, use bsxfun and make sure one vector is a row vector and the other a column vector (a would be vector and b would be vecto...

13 years ago | 0

| accepted

Answered
getting error when using fscanf function
Hi, who needs an error if one can guess ;) I guess the file data1.txt doesn't exist or is located in a different folder. W...

13 years ago | 1

Answered
How can I save matrix to .txt file?
Hi, use dlmwrite a = rand(64,60); dlmwrite('filename.txt',a)

13 years ago | 3

| accepted

Answered
How to remove the pairing X value when Y is NaN?
Hi, since X and Y have the same length do: X = X(isfinite(Y)) Y = Y(isfinite(Y))

13 years ago | 0

Answered
How to add three if else conditions?
Hi, do it like this if ((S1c<Sigma1) && (Sigma1<S1t) && (S2c<Sigma2) && (Sigma2<S2t) && (0<Sigma12) && (Sigma12<S6)) ...

13 years ago | 1

| accepted

Answered
How to execute a called
Hi, you have two alternatives: 1.) Use MATLAB Automation Server from VBS <http://www.mathworks.com/help/matlab/call-mat...

13 years ago | 1

| accepted

Load more