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

mehr als 11 Jahre vor | 1

| akzeptiert

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

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
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, ...

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
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, ......

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 0

Beantwortet
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'...

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 1

| akzeptiert

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

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 1

Beantwortet
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

mehr als 11 Jahre vor | 5

| akzeptiert

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

mehr als 11 Jahre vor | 1

| akzeptiert

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 1

Beantwortet
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

fast 12 Jahre vor | 0

| akzeptiert

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 2

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

fast 12 Jahre vor | 1

Mehr laden