Réponse apportée
Significant differences in execution time
Hi, in addition to Sara's comment take a look at the function timeit, that was introduced in R2013b (if you are using an olde...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Standalone (compiled) program reading external files
Hi, I'm not sure I fully understood the question. If you don't add the MASTER.csv during compilation, and have a call to fope...

presque 12 ans il y a | 0

Réponse apportée
How can you arrange two different push buttons with different functionality at the same location in a GUI?
Hi Ashish, do you create your GUI with GUIDE? Then it's straight forward: just put them at the same location. If you want to ...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Error using Matlab Compiler App (ApplicationCompiler) - Dependency Analysis
Hi Stefan, this comes from Simulink Verification and Validation, which is not supported by MATLAB Compiler, see <http://www.m...

presque 12 ans il y a | 1

Réponse apportée
Select rows given a condition
Hi Maria, you need to convert the first column into a vector firstColumn = cell2mat(A(:,1)); rows1997 = A(firstColumn==...

presque 12 ans il y a | 6

| A accepté

Réponse apportée
How to drop last N round-off error digits?
Hi Ilya, if you are happy with an output, then use fprintf: a=sqrt(pi); fprintf('a = %.14g\n', a) a = 1.772453850905...

presque 12 ans il y a | 5

| A accepté

Réponse apportée
concatenate 3 dimensional matrix in a loop
Hi, you can concatenate like follows in the loop allData(:,:,fileNr) = data; but if you "only" want to compute the me...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Matlab 2014a not using all logical cores
Hi, to clarify: "only 32 logical cores are being used" means you see in the task manager only 50% usage instead of the expect...

presque 12 ans il y a | 0

Réponse apportée
How to change default action of a subsystem?
Hi, do the following: * Right click on the block, select "Properties". * Select the callbacks tab. * Click on OpenFcn *...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
****The mex file with a different prhs****
Hi, it's not the data into the mex function (they are of type double, that's fine), but it's the plhs you have wrong: you cre...

presque 12 ans il y a | 1

| A accepté

Réponse apportée
Run executable file created by Matlab Compiler in Java: error of MCR
Hi, my first guess would be, that in your Java program the search path from Windows is not the same, i.e., it's missing the f...

presque 12 ans il y a | 0

Réponse apportée
Plotting system of differential equations in MATLAB
Hi, if you want to solve numerically, then doc ode45 should be a good starting point ... Titus

presque 12 ans il y a | 0

Réponse apportée
MATLAB7 interface with excel
Hi, you can use the ActiveX-Interface to query Excel: x = actxserver('Excel.Application'); v = get(x, 'version') d...

presque 12 ans il y a | 0

Réponse apportée
Problem displaying 12 bit colormap, bug?
Hi, I'm not sure, if I understand correctly, but have you tried to display the image as an indexed image? Your 12 bit images,...

presque 12 ans il y a | 1

| A accepté

Réponse apportée
Do MATLAB worker processes run only on CPU cores and not on GPU cores?
Hi Prateek, first of all, the number of workers is not limited to the number of cores, so on a 4-core (let the GPU aside for ...

environ 12 ans il y a | 1

| A accepté

Réponse apportée
How do execute a GUI's callback functions from the command line
Hi, when you open the GUI in guide, open the property inspector for some uicontrol, you will see in the property "callback" t...

environ 12 ans il y a | 0

Réponse apportée
Trying to install .exe built using MCR 7.14 on machine with 2013b. How? From where?
Hi Clement, different MCR's can coexist on the same machine without problems. If you have the MATLAB compiler licensed, you c...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
Reversing a 2D lookup table using S-fuction in Simulink
Hi, inverting will be possible only if the strict monoticity is given. If this is the case, you will end up with a usual 2D-L...

environ 12 ans il y a | 0

Réponse apportée
formal initialisation of matrix
Hi Julien, often you can use the function *meshgrid* for this... Titus

environ 12 ans il y a | 0

Réponse apportée
Is it possible to call a function defined in a MEX file inside a code compiled into C shared library?
Hi Yoann, first of all: yes, you can call a MEX file, that should work. Some questions: - you wrote a MEX file (called svm...

environ 12 ans il y a | 1

| A accepté

Réponse apportée
I can't import simulink generated shared library to visual studio
Hi, this sounds like if your Visual Studio Project is a .NET project instead of a C/C++ project ...? Titus

environ 12 ans il y a | 0

| A accepté

Réponse apportée
Switching a row vector to a column vector
Hi, output using fprintf needs always to be done row wise, not column wise. So build up your data e.g. into a cell matrix and...

environ 12 ans il y a | 0

Réponse apportée
Matlab Bulk Insert To SQL Question
Hi, you need to preprocess the data. So, use fopen/fread to read the full file (or large parts, if the file is huge) into mem...

environ 12 ans il y a | 0

Réponse apportée
Hide gui at start and show it once it is ready
Hi Lorenzo, you created you application "by hand", i.e., using uicontrol commands? Or using guide? In the first case, as you ...

environ 12 ans il y a | 0

Réponse apportée
Multiple Istances of Referenced Model and its Effect on S-Function Builder Block
Hi Mohammed, there are two issues here: first, to get rid of the error message. This can be done indeed by doing what the err...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
matlab read .dat files
Hi, there are several functions on the Fileexchange, e.g. this one: http://www.mathworks.com/matlabcentral/fileexchange/96...

plus de 12 ans il y a | 0

Réponse apportée
Export Data via fprintf printing something else besides NaN
Hi, a simple solution would be to print first into a string, process the string and then dump to the file, something like ...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
import dat from excel to matlab
Hi, a hint: doc xlsread Titus

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Confusion on Runge-Kutta method
Hi, your function f should have two inputs, namely t and X, where X is a two component vector [x, y]. Therefore your w=1 shou...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Callback of uicontrol fails to execute
Hi, You are right, if you have some lengthy code/calculation, Matlab queues the execution of the callback. Add to your code (...

plus de 12 ans il y a | 1

| A accepté

Charger plus