Respondida
How can I write a function for the below cell array comparison?
Hi Supreet, I think this is one of the cases where a simple loop is easier than trying to do something very clever: X = ...

alrededor de 9 años hace | 0

Respondida
Calculus with MATLAB, area under the curve
Hi, the "area under a curve" is also known as integrating the function. This should give you a starting point for searching ....

alrededor de 9 años hace | 0

Respondida
Combining multiple .m files and a .fig file into one?
Hi, on more recent versions there is the tab "APPS" where you can package your code via the button "Package App". Titus

alrededor de 9 años hace | 0

| aceptada

Respondida
Hi in have created .exe file from .m file using MCC but still not able to run the exe file without matlab .
Hi, did you run the MCR Installer on the machine not having MATLAB? Take a look here how it works: <http://www.mathworks.com...

alrededor de 9 años hace | 0

Respondida
I have 3*3*20 matrix and 1*1*20 matrix. how to multiply. I have multiply q and za
Hi Ranjan, if you want to multiply each 3x3 Matrix q(:,:,idx) with the corresponding za(1,1,idx), then this should work: ...

alrededor de 9 años hace | 2

| aceptada

Respondida
How can the output of a order character string stored in a variable?
Hi xosro, I'm not sure if this is what you want, but names = {A(1:2).name} collects the names into a cell array (or {...

alrededor de 9 años hace | 0

| aceptada

Respondida
Trying to compile C++ Code to call it from Matlab. Issue with dependencies. Please help! :)
Hi, looking at the code and the line #include <execinfo.h> with < > instead of " " indicates that this is a system h...

alrededor de 9 años hace | 0

Respondida
"week.m" file disapeared
Hi, EDIT: my answer below is not correct, but the comment explains what's going on. Hmm, are you sure this is a MathWorks ...

alrededor de 9 años hace | 1

Respondida
Why I'm getting this error?
Hi, as the error indicates: have you installed on the machine where you want to run the jar file the MCR (MATLAB Compiler Run...

alrededor de 9 años hace | 0

Respondida
Permute works extremely slow with large arrays
Hi Arseny, this is indeed a rather large array, it needs about 10.4 GB of memory. For the permutation, another 10.4 GB are us...

alrededor de 9 años hace | 2

Respondida
Assigning file name as variable name
Hi, you should use name as a variablename to importdata: name = input('Enter the name of a file: ','s'); s=importdata(n...

alrededor de 9 años hace | 0

Respondida
Rounding Vector Entries with zeros after the decimal place to integers
Hi, use Azzi's answer if displaying of results is what you after. If you want to eliminate some numerical noise from values t...

alrededor de 9 años hace | 0

| aceptada

Respondida
Colour data from a vlaue
Hi Toby, yes, colormap is usually used in connection with graphics. But there is nothing wrong in using the values for your p...

alrededor de 9 años hace | 0

Respondida
error in compiled version of GUI
Hi Amanda, it might happen that your code crashes within the subfunction Add_Index_To_DataCentral. In this case, the output v...

alrededor de 9 años hace | 0

Respondida
Wrong result when using BLAS dot product routine (DDOT) from a MEX file
Hi, you need to change the variable definition of m and one and use two variables for "one": ptrdiff_t m, one1 = 1, one2...

alrededor de 9 años hace | 0

| aceptada

Respondida
Single Figure is Required
Hi, replace the line fig=figure('Visible','on'); by subplot(5, 1, m); Titus

alrededor de 9 años hace | 0

| aceptada

Respondida
Detect in simulink if the current and past 4 values are same or not
You can use 4 delay blocks, and feed x_t and x_{t-1} into one relational block, x_{t-1} and x_{t-2} into the next relational blo...

alrededor de 9 años hace | 0

| aceptada

Respondida
25^23 without approximation
Use vpa from symbolic toolbox: digits(50); x = vpa(25); x23 = x^23 Titus

alrededor de 9 años hace | 1

| aceptada

Respondida
executable standalone with mex file
Hi Enrico, you need to make sure that the mex file can load the synview.dll (files), which I guess are somewhere "near" your ...

alrededor de 9 años hace | 0

Respondida
Access the array index using find
Hi, I guess you are looking for this: A1 = [1 12 23 45]; A1_1 = [45 23]; [~,idx] = ismember(A1_1, A1) idx = 4 ...

alrededor de 9 años hace | 1

Respondida
Should parallelization be switched on manually
Hi, on first sight it looks as if the loop on D for i=1:size(D,1) k0(i,:)=D(i,:); opti...

alrededor de 9 años hace | 0

Respondida
pixel data from mex to matlab: mxArray definition..
Hi Enrico, as a .bmp it probably has 24 bits, i.e., you iBytesPerPixel is 3. Therefore you should allocate a 1600x1200x3 matr...

alrededor de 9 años hace | 0

| aceptada

Respondida
command similar to setdiff for case insensitive
Hi, if two commands is fine as well, you can do the following: % find index of elements in a that are in b: [flag,idx...

alrededor de 9 años hace | 0

| aceptada

Respondida
Hidden call of m-file
An alternative is to go to the simulink preferences and enable "Callback tracing". Then you will see a printout in the command w...

alrededor de 9 años hace | 1

Respondida
How to append multiple .mat files that have the same variable names in them?
Hi Alex, yes, that's possible. * Use dir to read all the files * Use the functional form of load, i.e. data = load(f...

alrededor de 9 años hace | 0

Respondida
MySql datainsert/ fastinsert problem
Hi Sal, when you write a single entry to one column, then this will add a row to your table, and all the other columns will g...

alrededor de 9 años hace | 0

Respondida
Assign value to array structure
Hi, this should work: valuesCell = num2cell(ValuesToAssign); [StructArray.field_1] = valuesCell{:}; Titus

alrededor de 9 años hace | 1

| aceptada

Respondida
Problem with HitTest. I can not zoom on ax1 when ax2 is on top of it. The code works in Matlab 2012b.
Hi, I'm not yet sure, why this happens. Programmatically you can change the behavior to the desired as follows: hz = zoo...

alrededor de 9 años hace | 0

Respondida
Crank-Nicolson finite difference method - Error: Function definitions are not permitted in this context.
You need to save the code to a file, then call it ... Titus

alrededor de 9 años hace | 0

Respondida
Some tunable variables are missing in generated S-function mask
Hi Benjamin, note, that there are blocks in Simulink that don't allow the value to be tunable (all sample time related parame...

alrededor de 9 años hace | 0

Cargar más