Réponse apportée

How can I stop a user defined function from returning the output twice?

You don't have semicolons at the end of some lines (so output of those lines will be displayed). Maybe it is running once, but ...

How can I stop a user defined function from returning the output twice?

You don't have semicolons at the end of some lines (so output of those lines will be displayed). Maybe it is running once, but ...

plus de 9 ans il y a | 2

| A accepté

Réponse apportée

C++ to matlab(m-file) without mex

You can use <http://www.mathworks.com/help/matlab/ref/fprintf.html fprintf> in MATLAB, which is closer in usage to C than C++: ...

C++ to matlab(m-file) without mex

You can use <http://www.mathworks.com/help/matlab/ref/fprintf.html fprintf> in MATLAB, which is closer in usage to C than C++: ...

plus de 9 ans il y a | 1

Réponse apportée

== operator says two identical arrays aren't the same

Floating point numbers are not infinitely precise, and you probably have differences too small to be noticed when displaying onl...

== operator says two identical arrays aren't the same

Floating point numbers are not infinitely precise, and you probably have differences too small to be noticed when displaying onl...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée

Merging multiples csv files in Matlab-R2014b

Assuming the files are all in the same folder and you have 'cd'ed to there, trying something like: files = dir('*.csv'); % ...

Merging multiples csv files in Matlab-R2014b

Assuming the files are all in the same folder and you have 'cd'ed to there, trying something like: files = dir('*.csv'); % ...

plus de 9 ans il y a | 3

| A accepté

Réponse apportée

[Noob] Blank data -> NaN

I'm not familiar with portopt, so this will be general advise: You can de-NaN a vector of numbers with logical index: >> ...

[Noob] Blank data -> NaN

I'm not familiar with portopt, so this will be general advise: You can de-NaN a vector of numbers with logical index: >> ...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée

Matlab 2014b mex switch C compiler from XCode Clang to GCC on Mac

Sorry, MEX only supports Xcode/Clang on Mac. See <http://www.mathworks.com/support/compilers/R2014b/index.html?sec=maci64>

Matlab 2014b mex switch C compiler from XCode Clang to GCC on Mac

Sorry, MEX only supports Xcode/Clang on Mac. See <http://www.mathworks.com/support/compilers/R2014b/index.html?sec=maci64>

plus de 9 ans il y a | 0

| A accepté

Réponse apportée

How to display line number in command window when error occurs for R2014b?

Command+Enter (equivalent to the "Run Section" button) will run just a section of code, not the entire file. In this situation,...

How to display line number in command window when error occurs for R2014b?

Command+Enter (equivalent to the "Run Section" button) will run just a section of code, not the entire file. In this situation,...

plus de 9 ans il y a | 1

Réponse apportée

Problems with 2014b running EXTREMELY slowly on Mac OS?

This is all on the same computer, right? I would expect R2012b and R2014b to have comparable performance on your Mac. Try some...

Problems with 2014b running EXTREMELY slowly on Mac OS?

This is all on the same computer, right? I would expect R2012b and R2014b to have comparable performance on your Mac. Try some...

plus de 9 ans il y a | 0

Réponse apportée

error LNK 2019Cannot open include file: 'opencv/cv.h': No such file or directory

MEX is unaware of whatever settings you may have in a Visual Studio project. You will need to add the include folder to your ME...

error LNK 2019Cannot open include file: 'opencv/cv.h': No such file or directory

MEX is unaware of whatever settings you may have in a Visual Studio project. You will need to add the include folder to your ME...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée

Change the menu language to English

This is not elegant, but you can change the system's "Preferred Language" to English, start MATLAB, and then immediately set the...

Change the menu language to English

This is not elegant, but you can change the system's "Preferred Language" to English, start MATLAB, and then immediately set the...

plus de 9 ans il y a | 0

Réponse apportée

imshow() not working on mac

My guess is that Image Processing Toolbox is not installed. imshow used to be part of the Image Processing Toolbox, and was m...

imshow() not working on mac

My guess is that Image Processing Toolbox is not installed. imshow used to be part of the Image Processing Toolbox, and was m...

plus de 9 ans il y a | 0

Réponse apportée

Set Visual C++ 2010 as default compiler for MATLAB 2014a

Can you check that you can create *64-bit* executables from within Visual Studio 2010 (and if not, install the necessary compone...

Set Visual C++ 2010 as default compiler for MATLAB 2014a

Can you check that you can create *64-bit* executables from within Visual Studio 2010 (and if not, install the necessary compone...

presque 10 ans il y a | 0

| A accepté

Réponse apportée

what is the difference between these two types of rgb matlab code ?

In the first case, R is not a 3-D image, but a 2-D image, which MATLAB will display as grayscale. You created R as 2-D when you...

what is the difference between these two types of rgb matlab code ?

In the first case, R is not a 3-D image, but a 2-D image, which MATLAB will display as grayscale. You created R as 2-D when you...

presque 10 ans il y a | 0

| A accepté

Réponse apportée

Unable to read MAT-file E:\my_file.mat: not a binary MAT-file.

This sounds like something that should work. Try performing a checksum on the file on both computers and see what they report. ...

Unable to read MAT-file E:\my_file.mat: not a binary MAT-file.

This sounds like something that should work. Try performing a checksum on the file on both computers and see what they report. ...

presque 10 ans il y a | 0

Réponse apportée

Why does MATLAB think I have 5 output args when I have 6?

Do you mean that you are calling nargout from within the function, maybe inside the debugger? If so, nargout will be the number...

Why does MATLAB think I have 5 output args when I have 6?

Do you mean that you are calling nargout from within the function, maybe inside the debugger? If so, nargout will be the number...

presque 10 ans il y a | 0

Réponse apportée

Installing LibSVM on Mac OSX 10.9.2 (mex file error)

What version of MATLAB, and what version of Xcode are you running? My guess is that you're running a new version of Xcode, a ...

Installing LibSVM on Mac OSX 10.9.2 (mex file error)

What version of MATLAB, and what version of Xcode are you running? My guess is that you're running a new version of Xcode, a ...

presque 10 ans il y a | 1

Réponse apportée

How to solve Maximum recursion limit of 500 reached problem

A recursion depth of 500 is "absurd", almost surely indicating a problem in the code and not some limitation in MATLAB. The rec...

How to solve Maximum recursion limit of 500 reached problem

A recursion depth of 500 is "absurd", almost surely indicating a problem in the code and not some limitation in MATLAB. The rec...

presque 10 ans il y a | 0

| A accepté

Réponse apportée

get an Excel file write data, but 'save as ...' (not overwrite the parent file)

The first argument to <http://www.mathworks.com/help/matlab/ref/xlswrite.html xlswrite> is the filename, so use that to create n...

get an Excel file write data, but 'save as ...' (not overwrite the parent file)

The first argument to <http://www.mathworks.com/help/matlab/ref/xlswrite.html xlswrite> is the filename, so use that to create n...

presque 10 ans il y a | 1

Réponse apportée

i couldnt able to install matlab2014. please guide me to intall matlab.

Check your Mac's security settings, and allow apps downloaded from anywhere.

i couldnt able to install matlab2014. please guide me to intall matlab.

Check your Mac's security settings, and allow apps downloaded from anywhere.

presque 10 ans il y a | 0

Réponse apportée

MATLAB - 'Getting Status for Files' - Yosemite problem

Try turning off source code control integration as described <http://www.mathworks.nl/matlabcentral/answers/159574-matlab-2014b-...

MATLAB - 'Getting Status for Files' - Yosemite problem

Try turning off source code control integration as described <http://www.mathworks.nl/matlabcentral/answers/159574-matlab-2014b-...

presque 10 ans il y a | 2

| A accepté

Réponse apportée

How to get xlsread, xlswrite, actxserver to find, read and write to/from Excel 2010?

Could you be running a so-called "click to run" version of Office ( <http://support.microsoft.com/kb/982431> )? That version di...

How to get xlsread, xlswrite, actxserver to find, read and write to/from Excel 2010?

Could you be running a so-called "click to run" version of Office ( <http://support.microsoft.com/kb/982431> )? That version di...

presque 10 ans il y a | 2

| A accepté

Réponse apportée

Pre-determining the number of lines in a text file

If we can make two assumptions: * ASCII #10 is a reliable end-of-line marker * The entire file will fit into memory (that is...

Pre-determining the number of lines in a text file

If we can make two assumptions: * ASCII #10 is a reliable end-of-line marker * The entire file will fit into memory (that is...

presque 10 ans il y a | 1

Réponse apportée

A small problem on my homework assignment has something to do with case expression.

I like Image Analyst's suggestion because a multiple-choice UI eliminate the need to check for bad input, but your professor mig...

A small problem on my homework assignment has something to do with case expression.

I like Image Analyst's suggestion because a multiple-choice UI eliminate the need to check for bad input, but your professor mig...

presque 10 ans il y a | 0

Réponse apportée

Convert Excel String time to number

This is not pretty, but you can split the string on the ':' and compute the number of seconds since midnight. The code below us...

Convert Excel String time to number

This is not pretty, but you can split the string on the ':' and compute the number of seconds since midnight. The code below us...

presque 10 ans il y a | 0

Réponse apportée

Trying to connect XCode 5 and Matlab 2014a and get an AWT-EventQueue-0 error

Presumably you are trying to debug a MEX-File. See the documentation topic <http://www.mathworks.com/help/matlab/matlab_externa...

Trying to connect XCode 5 and Matlab 2014a and get an AWT-EventQueue-0 error

Presumably you are trying to debug a MEX-File. See the documentation topic <http://www.mathworks.com/help/matlab/matlab_externa...

presque 10 ans il y a | 0

Réponse apportée

In MATLAB 2014b, how can I undock the editor into one window but dock all my scripts into that single window? (not dock them into the command window)

In the dark-blue frame of the editor window, # On the right-hand side, click the down-arrow icon (boxed in red in the screen ...

In MATLAB 2014b, how can I undock the editor into one window but dock all my scripts into that single window? (not dock them into the command window)

In the dark-blue frame of the editor window, # On the right-hand side, click the down-arrow icon (boxed in red in the screen ...

presque 10 ans il y a | 3

Réponse apportée

No supported compiler found Matlab R2014a visual studio 2012 professional

I don't see a problem here ("MEX configured to use ..."). MEX is simply telling you that 64-bit array handling is changing.

No supported compiler found Matlab R2014a visual studio 2012 professional

I don't see a problem here ("MEX configured to use ..."). MEX is simply telling you that 64-bit array handling is changing.

presque 10 ans il y a | 0

Réponse apportée

Patch for Matlab 2014a Student on OS X 10.10?

Whitney, yes, you do need a patch for R2014a to work with Yosemite. To the best of my knowledge, it is compatible with both pro...

Patch for Matlab 2014a Student on OS X 10.10?

Whitney, yes, you do need a patch for R2014a to work with Yosemite. To the best of my knowledge, it is compatible with both pro...

presque 10 ans il y a | 0

| A accepté

Réponse apportée

How to get a vector from an excel sheet

Conversion from matrix to vector is: >> x = x(:);

How to get a vector from an excel sheet

Conversion from matrix to vector is: >> x = x(:);

presque 10 ans il y a | 0

Réponse apportée

Question of automatically creating MATLAB folder

Try: >> userpath /my/custom/location Then restart MATLAB.

Question of automatically creating MATLAB folder

Try: >> userpath /my/custom/location Then restart MATLAB.

presque 10 ans il y a | 20

| A accepté