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

oltre 11 anni fa | 0

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

oltre 11 anni fa | 0

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

oltre 11 anni fa | 0

| accettato

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

oltre 11 anni fa | 1

| accettato

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

oltre 11 anni fa | 1

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

oltre 11 anni fa | 0

| accettato

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

oltre 11 anni fa | 1

| accettato

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

oltre 11 anni fa | 2

| accettato

Risposto
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

oltre 11 anni fa | 2

| accettato

Risposto
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

oltre 11 anni fa | 1

| accettato

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

oltre 11 anni fa | 1

| accettato

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

oltre 11 anni fa | 0

| accettato

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

oltre 11 anni fa | 1

| accettato

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

oltre 11 anni fa | 0

| accettato

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

oltre 11 anni fa | 0

Risposto
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

oltre 11 anni fa | 6

| accettato

Risposto
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: ...

oltre 11 anni fa | 2

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

oltre 11 anni fa | 0

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

oltre 11 anni fa | 0

| accettato

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

oltre 11 anni fa | 1

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

oltre 11 anni fa | 0

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

oltre 11 anni fa | 0

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

oltre 11 anni fa | 0

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

oltre 11 anni fa | 1

| accettato

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

oltre 11 anni fa | 0

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

oltre 11 anni fa | 0

Risposto
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

oltre 11 anni fa | 0

| accettato

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

oltre 11 anni fa | 0

Risposto
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)]...

oltre 11 anni fa | 0

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

oltre 11 anni fa | 1

Carica altro