Beantwortet
How to write a function of a curve?
Hi, try an anonymous function. <http://www.mathworks.com/help/matlab/matlab_prog/anonymous-functions.html> So for examp...

mehr als 13 Jahre vor | 2

| akzeptiert

Beantwortet
Anyone have Java implementation for Matlab functions?
Hi, this could be worth a shot: use MATLAB Coder to generate C code out of your MATLAB code. Then use some ARM compiler an...

mehr als 13 Jahre vor | 1

| akzeptiert

Beantwortet
renaming files to easily read it in to matlab problematic
Hi, why renaming them? This is not needed. Use the dir command to get a struct array which contains also the filenames: ...

mehr als 13 Jahre vor | 1

| akzeptiert

Beantwortet
How can I use visdiff correctly?
Hi, sounds like a messed up ML search path. Try running: restoredefaultpath; matlabrc After that try again. Normal...

mehr als 13 Jahre vor | 1

| akzeptiert

Beantwortet
Structure declaration in Matlab
Hi, I dont have a MATLAB for testing at the moment but I guess the declaration should look like this: estruct = struct...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
How can I define which .Net framework shall a deployed MATLAB function use?
Hi, first of all this is expected behavior due some .NET Security Policies. The MCR load the 2.0 CLR which then needs to load...

mehr als 13 Jahre vor | 2

| akzeptiert

Beantwortet
coder.ceval('printf',....) does not print a message instantaneously
Hi, as long you stay with mex you can do a mexEvalString("drawnow"); So a coder.ceval('mexEvalString', '"dr...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
How to deploy package that calls an external .m file
This wont work at all. MATLAB Compiler generated exe's can't read/use plain m files. The only way to have interchangeable dat...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
normalize a maatrix of 13 columns
Hi, I think this should do it: bsxfun(@rdivide,A,sqrt(sum(A.*A,1))) So looking at an easy example: A = [1 2 3;...

mehr als 13 Jahre vor | 1

| akzeptiert

Beantwortet
Does setenv not set variables for MEX functions?
Hi, I think the following Microsoft statement should help here: "getenv and _putenv use the copy of the environment ...

mehr als 13 Jahre vor | 4

| akzeptiert

Beantwortet
C# .NET Trouble initializing libraries required by Builder NE
Hi, normally one would create a .exe.config file with the same name as your application and put in the following lines: ...

mehr als 13 Jahre vor | 1

| akzeptiert

Beantwortet
Time limit for the Exclamation Point — !
Hi, which OS are you on? On windows you can use activex and the WScript.Shell component to set a timeout and cancel the star...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
Forcing deploytool to include toolbox.
Hi, Simulink and all other Toolboxes which are based on Simulink can't be compiled with ML Compiler: <http://www.mathworks...

mehr als 13 Jahre vor | 1

| akzeptiert

Beantwortet
Matlab Compiler - Invalid MEX-file for 'sqp' in optimization toolbox
Hi, @Kaustubha: very unlikely. If the function is missing you would get an unkown function error!!! Seems more like a miss...

fast 14 Jahre vor | 2

| akzeptiert

Beantwortet
Binary to Signed decimal in MATLAB
Hi, can't you simply do the inverse way to get it back? Or am I missing something here? typecast(uint16(bin2dec('1000000...

fast 14 Jahre vor | 2

| akzeptiert

Beantwortet
replicate values of a vector
Hi, try repmat: repmat(A,4,1) Or for the other direction: repmat(A,1,4) In the case you want it repeated lik...

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
Excel help
Hi, at least this works fine for me: x = [2 6 7 13 27 100] xlswrite('test.xlsx',{num2str(x)}) [~,data] = xlsread...

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
Mex Compiler Setup
Hi, VS 2008 Express isnt supported by 11b: <http://www.mathworks.com/support/compilers/R2011b/win32.html> So what did y...

fast 14 Jahre vor | 1

| akzeptiert

Beantwortet
Please help!
Hi, please preallocate the output variables first, because the first appearance of nest is in a loop where you populate it, ...

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
reading external data via com port or parallel port
Hi, have you tried the serial command? <http://www.mathworks.com/help/releases/R2012a/techdoc/ref/serial.html>

fast 14 Jahre vor | 1

| akzeptiert

Beantwortet
mcc or standalone simulation error
Hi, this is a bug, see here for a workaround: <http://www.mathworks.com/support/bugreports/764094>

fast 14 Jahre vor | 1

| akzeptiert

Beantwortet
extract numbers from string in a cell
Hi, you can use regexprep or some ascii value representation comparison to do so, e.g. a = {'TT21abc.def'}; %asci...

fast 14 Jahre vor | 1

| akzeptiert

Beantwortet
Launch MCR in a C# code
Hi again, Since you have an installed MATLAB and working with C#, why arent you using COM directly? This makes it a way easie...

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
Set Excel cell interior color to RGB value
Hi, try the following: rgb_val = @(r,g,b) r*1+g*256+b*256^2; WB.Worksheets.Item(1).Range('A2').Interior.Color = rgb_v...

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
To translate TriScatteredInterp from Matlab to C# or C++
Hi, besides of that error message. Don't even try to generate a mex file from that code because TriScatteredInterp isn't supp...

fast 14 Jahre vor | 1

| akzeptiert

Beantwortet
Make error because of MATLAB function block.
Hi, run mex -setup to choose a supported installed compiler ( <http://www.mathworks.com/support/compilers/R2011a/win32.html> ...

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
executable form of m-file
Hi, you need the MATLAB Compiler for it: <http://www.mathworks.com/products/compiler/> Beware of the limitations: <h...

etwa 14 Jahre vor | 1

Beantwortet
MATLAB error in counting
Hi num2str is correct here, but the missing space after the 2 makes the result looking wrong, because the correct number 1537...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
How to get Tabpanel constructor v2.8 running?
Hi, seems like a small typo. Try tabpanel instead of panel with two a's.

etwa 14 Jahre vor | 1

Beantwortet
2012a Does Not Install
Hi, please contact the installation support from MathWorks. They will help you.

etwa 14 Jahre vor | 1

| akzeptiert

Mehr laden