Réponse apportée
Problem using interp1 cubic
Hi, the plot shows that it's not a function y = f(x) and also not a function x = g(y). So you will need to move to a 2D param...

plus de 13 ans il y a | 1

Réponse apportée
"Find" function with 3d matrix doesn't work
Hi, the answer ans = 1.0000 instead of ans = 1 tells you the problem: the value is 1, but only rou...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
Incorrect rgb values from image matrix
Hi, you will need to access image(250, 620, :) to see the RGB values of pixel (620, 250). You see this, when you move the mou...

plus de 13 ans il y a | 0

Réponse apportée
How to convert const real_T value to double ?
Hi, the function ssGetInputPortRealSignalPtrs allows Simulink to have the inputs organized in chunks. That's good for optimiz...

plus de 13 ans il y a | 5

| A accepté

Réponse apportée
Can I use Matlab NE Builder to compile a matlab class to dll?
Hi, yes, that's right. You can't compile a class in order to have it as a class in .NET, because if you would try to pass the...

plus de 13 ans il y a | 0

Réponse apportée
save a three dimensional matrix
Hi, you have two options: one would be to save the individual slices for b=1:size(GP, 3) Q(:,:, b) = wtpt*GP(:,:,b)...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
Objects won't keep member variables
Hi, the way you write the code is correct, if you have "handle-semantics". For value semantics you have to return the changed...

plus de 13 ans il y a | 5

| A accepté

Réponse apportée
MCR and version update
Hi, does the installation of R2012a MATLAB on the second laptop also included installing the Compiler? A MATLAB installation ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Why does a class created through MATLAB Builder NE throw an exception at initialization?
Hi, I would suggest to add an "On Error" handler to the code, and take a look at the error message thrown. Without the error ...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
Real Time Workshop and building models with autocoding from the terminal window instead of MATLAB enviroment
Hi Jenniffer, I think you are looking for the command rtwbuild You can invoke MATLAB as a batch process from the ope...

plus de 13 ans il y a | 1

Réponse apportée
Converting a 2D nxm Array into appropriate seperate 1D Arrays
Hi, if you know the x and y values (somehow), converting the 2D matrix (which is Z I guess) to a vector would just be z ...

plus de 13 ans il y a | 1

Réponse apportée
plotting two columns of values data at workspace
Hi, if you want to plot them against each other: plot(xxx.signals.values(:,1), xxx.signals.values(:, 2)) Titus

plus de 13 ans il y a | 5

Réponse apportée
can we convert com.mathworks.toolbox.javabuilder.MWArray to java.lang.object?
Hi, this is a rather general question, so here a rather general answer: you might want to take a look at the toArray method (...

plus de 13 ans il y a | 0

Réponse apportée
Using mcc to compile code which calls mex files
Hi, if you look into the file "multistart_GAMS_initializer_v2_1" that (from your error message) tries to start gams: does it ...

plus de 13 ans il y a | 0

Réponse apportée
connecting matlab to c++ language dll
Hmm, I just took another look on your question: probably the easiest thing to do is to write a second header file just containin...

plus de 13 ans il y a | 0

Réponse apportée
connecting matlab to c++ language dll
Hi, did you tell MATLAB to use visual studio as well? Looks as if it uses LCC, the C compiler that comes bundled with MATLAB....

plus de 13 ans il y a | 0

Réponse apportée
Do an interpolation in matlab
Hi, you will need to average all values between 352 and 353. To this end use histc to find those effiently and then loop. Her...

plus de 13 ans il y a | 0

Réponse apportée
Matlab Pool - Multiple Machines
Hi, using the Parallel Computing Toolbox only gives access to start local workers only, i.e., on the same (physical) machine....

plus de 13 ans il y a | 1

Réponse apportée
Fixed-point precision, why half?
If you look at the example of 2^4: Let's take the number 1. The number 1 represents all numbers in the interval [1-0.03125, 1+0....

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Error with function "datenum" -- only works every other time.
Hi, if you happen to have a 64 Bit MATLAB it looks as if you got trapped by this bug: http://www.mathworks.com/support/bugre...

plus de 13 ans il y a | 1

Réponse apportée
precision difference in matlab and gnu g++
Hi, not really: both answers are equally correct up to round off: the roundoff for the last difference is eps(rho*gamma/...

plus de 13 ans il y a | 0

Réponse apportée
C++ std::tr1::array
Hi Paul, you are writing a MEX file? If so, the language constructs to be understood depend on the compiler, not on MATLAB. I...

plus de 13 ans il y a | 0

Réponse apportée
Question about accessing data in GUIDE GUI
Hi Brian, using nested functions (the link you provided) is in my opinion and godd way, but only if you write the GUI by hand...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
function to change name when displays
Hi, you could use the function inputname in your checkmiss function. doc inputname Titus

plus de 13 ans il y a | 0

Réponse apportée
mex: linker does not seem to be able to access external lib file; -l & -L options not helping
Hi, you are right, you need the -l and -L. Your call should look something like mex NI_USB_6008_AnalogInput.c -Lc:\someF...

plus de 13 ans il y a | 0

Réponse apportée
Calling a DLL generated by MatLab from VC
Hi, it's the last memcpy that's wrong: you should not use the datastructure norm_out, but the data of norm_out, i.e., me...

plus de 13 ans il y a | 0

A résolu


Add more zeros
Find code that adds one 0 to each sequence of 0 in a string (composed with only 0 or 1). For example: '1010' -> '100100' ...

plus de 13 ans il y a

Réponse apportée
How to do plot in uniform colorization?
Hi, this is controlled by the CLim property of the axes. So does this example help? h1 = subplot(1,2,1); [X,Y,Z]=peaks;...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Problem with 'datevec' function ... I think a bug!
Hi, this usually happens when somewhere down the array the strings are not valid anymore. A simple way to find out: % as...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
index must be a positive integer or logical.
Hi, it looks as if (aa-Mmin+DM)/DM is not an integer. If it should be, round would help: gg(round((aa-Mmin+DM)/...

plus de 13 ans il y a | 1

| A accepté

Charger plus