Respondida
Output matrix to x/y/cell value
Hi Martin, are you looking for something like this: >> A = rand(2,3) A = 0.2020 0.3507 0.0538 0.2103 ...

más de 11 años hace | 1

| aceptada

Respondida
Mex function help for mexfile function
Hi, exactly answering your question: no, that's the way it works. You have basically two options: * Add the mex folder ...

más de 11 años hace | 0

| aceptada

Respondida
How can I access the methods of a returned object?
Hi, no, that's not possible. It's like with numeric arrays: you can't index into the result of a function directly. Suppose y...

más de 11 años hace | 0

| aceptada

Respondida
Simulating C MEX S-Function causes crash
Hi, I'm not sure why you added the line if(!ssSetOutputPortDimensionInfo(S,outputPortIdx,DYNAMIC_DIMENSION)) return; ...

más de 11 años hace | 0

Respondida
How to control simulink with fmincon using 2 (two) decision variables
Hi, do you have other variables in your model apart from cr and tr? If not, you should select 'current' for SrcWorkspace and ...

más de 11 años hace | 0

Respondida
How can I run Matlab completely quiet?
Hi Jette, I'm pretty sure there is no way to do this with MATLAB only. If you happen to have the MATLAB compiler you could us...

más de 11 años hace | 0

| aceptada

Respondida
Trouble linking against MatLab .dll
Hi Ulrich, is the folder where you found the libMat.dll on your Windows PATH (when you open CMD window, enter PATH). If not, ...

más de 11 años hace | 0

| aceptada

Respondida
mex fcn makes trouble ...
Hi, if I see it correctly your result arrays are too small: pout[0] = mxCreateDoubleMatrix((mwSize)(2*len_1 - 1), (mwSiz...

más de 11 años hace | 0

| aceptada

Respondida
Attempted to access x(2); index out of bounds because numel(x)=1 for an ODE function
Hi, you will need to change the order of variables: your function dx should look like function dx = dx(t, x, m1, m2, ......

más de 11 años hace | 0

Respondida
How can I animate my 3d surface like this?
Hi, take a look at the function doc VideoWriter which includes a simple example. Titus

más de 11 años hace | 0

Respondida
comparing two strings with Database?
Hi, just guessing: your DB1 is one row of your database? And you are looking for rows, in which you find both an occurrence o...

más de 11 años hace | 0

| aceptada

Respondida
How to get a set of numbers with the first and the last absolute difference are the same and etc.
Hi, the problem is not generally solvable (without additional flexibility/requirements): a = [3 5 1 4 2] a = 3 ...

más de 11 años hace | 0

Respondida
Matlab Web based applications
Hi Tamim, unfortunately this is not possible. The products mentioned above by Viswanath help you *integrate* your MATLAB func...

más de 11 años hace | 0

Respondida
mzXMLread fails and tells me a 'Java exception occured'
Hi, I would suggest to contact MathWorks technical support. They should be able to find out, if there is something wrong with...

más de 11 años hace | 0

| aceptada

Respondida
Which function make vectorization ,(after this function not need dot )?
Hi, you are looking for the function name? doc times doc power Titus

más de 11 años hace | 0

| aceptada

Respondida
Cell Arrays operation in level-2 matlab S-function for code generation
Hi Nick, yes, you can "inline" MATLAB S-functions with a .tlc file, see <http://www.mathworks.com/help/releases/R2014b/rtw/t...

más de 11 años hace | 0

Respondida
dynamic y-tick label
Hi Yona, what you can do is to add a callback to your zoom function, i.e., h = zoom(fig); set(h, 'ActionPostCallback'...

más de 11 años hace | 0

| aceptada

Respondida
Error calling a DLL from MSVS C++ 2010
Hi, it looks indeed as from R2013b: the folder mcrCache8.2 tells you it relates to MCR version 8.2 of the MATLAB compiler, an...

más de 11 años hace | 0

| aceptada

Respondida
Problem with accessing C# dll files
Hi, if you have a C# dll I guess it's not a usual Windows dll but a .NET assembly? In this case you would need to use N...

más de 11 años hace | 1

| aceptada

Respondida
Install a compiler to rum mex file
Hi Ahmed, you will find the list <http://www.mathworks.com/support/compilers/release2009a/ here>. R2009a did not know anythin...

más de 11 años hace | 0

| aceptada

Respondida
assign loaded structs directly
Hi, not really. But what you can do is to save the data as individual variables originally. So when you save your structure O...

más de 11 años hace | 1

Respondida
access cell array inside another cell array
Hi Steffen, nested indexing should work: A = cell(1,94); A{4} = cell(600, 27); b = A{4}{600,27} Titus

más de 11 años hace | 5

| aceptada

Respondida
Problems with legend in R2014b
Hi John, regarding the second question: if you click on the arrow next to the printer icon you get into the edit mode. Then y...

más de 11 años hace | 1

| aceptada

Respondida
compiling matlab code: works in Matlab but not in cmd.exe
Hi, I just made another test: replacing gmdistribution.fit by fitgmdist (as the help for gmdistribution.fit suggests, because...

más de 11 años hace | 0

Respondida
compiling matlab code: works in Matlab but not in cmd.exe
Hi, I'm not sure yet about the parfor part of the question. You are right, the compiler should pick up the code automatically...

más de 11 años hace | 0

Respondida
My uimenu list (a vertical child menu list) is too long to fit on my monitor
Hi, no, you don't have this option. I would suggest to have the uimenu entry create a new dialog to select from (using e.g. l...

más de 11 años hace | 1

Respondida
Is there any way how to integrate a double variable
Hi, for a vector gap1 you can use the function trapz as a simple way of integrating... Titus

más de 11 años hace | 0

| aceptada

Respondida
Using Optimization Toolbox with unknown function.
Hi, as Star Strider said, you must have an objective function. This does not mean you have to have an explicit function, but ...

más de 11 años hace | 0

Respondida
Which function can be used?
Hi Dinesh, yes you can. Implement the right hand side of your equation as a function of the form function dA = f(t,A) ...

más de 11 años hace | 2

Respondida
How to control the number of inputs in a function
Hi Marjan, the problem is that you cannot capture too many input variables inside the function because the error already occu...

más de 11 años hace | 1

Cargar más