Risposto
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...

circa 13 anni fa | 0

| accettato

Risposto
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...

circa 13 anni fa | 0

| accettato

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

circa 13 anni fa | 1

Risposto
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]; ...

circa 13 anni fa | 10

| accettato

Risposto
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....

circa 13 anni fa | 0

| accettato

Risposto
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...

circa 13 anni fa | 0

| accettato

Risposto
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...

circa 13 anni fa | 0

| accettato

Risposto
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://...

circa 13 anni fa | 0

Risposto
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)") ...

circa 13 anni fa | 0

| accettato

Risposto
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 ...

circa 13 anni fa | 0

| accettato

Risposto
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...

circa 13 anni fa | 0

| accettato

Risposto
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...

circa 13 anni fa | 0

| accettato

Risposto
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...

circa 13 anni fa | 1

| accettato

Risposto
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...

oltre 13 anni fa | 2

| accettato

Risposto
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==...

oltre 13 anni fa | 1

| accettato

Risposto
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...

oltre 13 anni fa | 0

Risposto
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...

oltre 13 anni fa | 0

| accettato

Risposto
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...

oltre 13 anni fa | 0

Risposto
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:\...

oltre 13 anni fa | 0

| accettato

Risposto
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...

oltre 13 anni fa | 1

| accettato

Risposto
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 ...

oltre 13 anni fa | 0

| accettato

Risposto
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...

oltre 13 anni fa | 0

| accettato

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

oltre 13 anni fa | 0

Risposto
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...

oltre 13 anni fa | 0

| accettato

Risposto
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...

oltre 13 anni fa | 0

| accettato

Risposto
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...

oltre 13 anni fa | 1

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

oltre 13 anni fa | 3

| accettato

Risposto
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))

oltre 13 anni fa | 0

Risposto
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)) ...

oltre 13 anni fa | 1

| accettato

Risposto
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...

oltre 13 anni fa | 1

| accettato

Carica altro