已回答
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...

12 years 前 | 0

| 已接受

已回答
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...

12 years 前 | 0

| 已接受

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

12 years 前 | 1

已回答
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]; ...

12 years 前 | 10

| 已接受

已回答
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....

12 years 前 | 0

| 已接受

已回答
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...

12 years 前 | 0

| 已接受

已回答
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...

12 years 前 | 0

| 已接受

已回答
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://...

12 years 前 | 0

已回答
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)") ...

12 years 前 | 0

| 已接受

已回答
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 ...

12 years 前 | 0

| 已接受

已回答
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...

12 years 前 | 0

| 已接受

已回答
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...

12 years 前 | 0

| 已接受

已回答
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...

12 years 前 | 1

| 已接受

已回答
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...

12 years 前 | 2

| 已接受

已回答
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==...

12 years 前 | 1

| 已接受

已回答
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...

12 years 前 | 0

已回答
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...

12 years 前 | 0

| 已接受

已回答
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...

12 years 前 | 0

已回答
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:\...

12 years 前 | 0

| 已接受

已回答
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...

12 years 前 | 1

| 已接受

已回答
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 ...

12 years 前 | 0

| 已接受

已回答
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...

12 years 前 | 0

| 已接受

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

12 years 前 | 0

已回答
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...

12 years 前 | 0

| 已接受

已回答
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...

12 years 前 | 0

| 已接受

已回答
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...

12 years 前 | 1

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

12 years 前 | 3

| 已接受

已回答
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))

12 years 前 | 0

已回答
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)) ...

12 years 前 | 1

| 已接受

已回答
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...

12 years 前 | 1

| 已接受

加载更多