Answered
Increase precision of digits
Hi Tobi, this is not really true: x = 2e-127; y = 3e-126; x*y ans = 6.0000e-253 I think you mix up the size...

11 years ago | 0

Answered
C++ engPutVariable() memory limitation
Hi, I'm not sure but I guess the engPutVariable needs to copy the matrix from your C application to MATLAB. The two applicati...

11 years ago | 0

Answered
Is it possible to generate embedded code of a subsystem from m file?
Hi Siddhant, yet, take a look at doc rtwbuild Titus

11 years ago | 0

| accepted

Answered
Speeding up comparison using strcmp
Hi, I would convert device to a cell array (using cellstr) and then call ismember without the loop, something like cellD...

11 years ago | 1

| accepted

Answered
Merge structures with subfields
Hi Jan, it probably might be too easy (that's why I don't try here ;-)), but my guess is, that with a recursive call you migh...

11 years ago | 1

Answered
i get a wrong answer for my code, can someone please help!
Hi, I'm not sure what you are doing in the second half of the function, but shouldn't the line DTC(i)=norm(xvals(i))+nor...

11 years ago | 0

| accepted

Answered
QR Factorization Using Householder Transformations
Hi Hüseyin, I don't think something is wrong. Q*R gives A (at least for your matrix A). Having different Q and R from MATLAB'...

11 years ago | 1

| accepted

Answered
How can I set the Xtick / Ytick labels of my axes with the "Interpreter" as "none" in Matlab 8.4 (R 2014b) Version?
Hi, interesting, haven't observed this yet. I admit, I don't know how to change the "property" (in "", because there is no pr...

11 years ago | 2

| accepted

Answered
Importing large CSVs and consolidating in one matrix.
Hi Pranjal, if you have R2014b available, then datastore + mapreduce would be the choice of tools. Titus

11 years ago | 2

| accepted

Answered
Possible to set new colors with a string color specifier?
Hi Stefan, you can use this data: c = get(0, 'DefaultAxesColorOrder'); plot(x, y, 'Color', c(1,:)); Titus

11 years ago | 1

| accepted

Answered
Can a function in matlab return a polynomial or an expression?
Hi, if you are looking for polynomials only: polynomials of form a_n*x^n+ ...+a_1*x+a_0 are represented as vectors [a_n ... a...

11 years ago | 1

| accepted

Answered
Help with plot in matlab
Hi, two possibilities: * You remove the ticks: set(gca, 'ytick', []), but this way you would also see no grid lines. * Re...

11 years ago | 0

| accepted

Answered
Renaming m and fig files
Hi, if they are both files created by GUIDE, the best way is to open GUIDE again and use menu File->Save as. This makes sure ...

11 years ago | 1

| accepted

Answered
listbox rendering problem 2014b
Hi, I guess the following happened: your listbox1 contains e.g. 20 file names. You select no 15. Now using your popup menu yo...

11 years ago | 0

| accepted

Answered
how to plot a straight line of the form y=w1*x1+w2*x2 in matlab
Hi, what about plot(y) Titus

11 years ago | 0

Answered
Count Numbers between two values in random vectors
Hi, use logical indexing and count the result: X = rand(1, 1000); nBetween05and09 = sum(X>0.5 & X<0.9) Titus

11 years ago | 6

| accepted

Answered
Sparse backslash stopped doing pivoting forever after crash
Hi, interesting observation ;-). The "forgot to do pivoting" got me thinking. Please take a look at the function spparms: ...

11 years ago | 2

Answered
How can I solve this error message: "To Reshape the number of elements must not change"?
Hi Satish, we will not be able to debug your code ... But you should be able to do your self: * Put a breakpoint on the li...

11 years ago | 0

Answered
Please tell me how to resolve out of memory error of this code
Hi, assuming that the out of memory happens in the assignment matrix = [matrix; j,k,dum]; I would suggest to prealloc...

11 years ago | 0

| accepted

Answered
I am using several num2str in one annotation in the statement shown below. It works produces an output that is vertical and broken up in several lines, one for each variable. Please help!
Hi, you used {} to concatenate. In this case you create a cell array, and this tells annotation to break into several lines. ...

11 years ago | 1

Answered
Mex crash with callback
Hi, hmm, it works fine for me, both with the current version and with R2012b. Only observation I have: in your comment it's w...

11 years ago | 0

Answered
integrate C code in block simulink for C2000
Hi Dario, take a look at the following point in the doc: http://www.mathworks.com/help/releases/R2014b/simulink/custom-blo...

11 years ago | 0

Answered
How to set up Compiler Configuration?
Hi, in this case invoke mex with the "-f" option: copy from your prefdir folder the mexopts.bat to where the source code is a...

11 years ago | 0

Answered
Hot can I redirect mex output to stderr?
Hi Christoph, at the bottom of deploytool you should have "Additional Runtime Settings" where you can enable "Create log file...

11 years ago | 1

| accepted

Answered
weird calculating result from symbolic equation when using parenthesis
Hi Jesse, these are two different things. Slightly simpler example: x1 = a - (b - c) and x2 = a - b - c are...

11 years ago | 0

Answered
About qr decomposition function : qr
Hi, regarding the algorithm: the help for qr states % X = QR(A) and X = QR(A,0) return the output of LAPACK's *GEQRF rou...

11 years ago | 0

Answered
there are two 8 bit binary values in a single variable...how can i concate these two values???
Hi, concatenate them using reshape: reshape(c', 1, numel(c)) Titus

11 years ago | 0

| accepted

Answered
matlab not generating function_name.exe after deployment on .NET
Hi, If you want to have a .exe to be called you should select this when creating the project with deploytool. Don't select .N...

11 years ago | 0

Answered
Rendering issues in Matlab R2014b version when using patch
Hi, I think you need to add the line at the zero: lm = 0; s = 1:1000; d = [ones(1, 100) zeros(1, 800) -1*ones(1, 100)]...

11 years ago | 0

Answered
Java error when opening fig files
Hi, the opengl classes are in matlabroot\java\jarext\gluegen-rt.jar matlabroot\java\jarext\jogl-all.jar So please...

11 years ago | 1

Load more