Réponse apportée
Error in getDefaultUserFolder at MATLAB (2012b) startup
Do you have Lucid Logix's VirtuMVP installed on your machine? See this question: http://www.mathworks.com/matlabcentral/answer...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
How do I enable subscripting in a custom class inhereting uint64
What is the purpose of prop? This class is index-able and works as a uint64. classdef tclass < uint64 methods ...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Bidirectional interface to MATLAB (allowing callbacks)
Any shared library directly or indirectly loaded by MATLAB can use mx and mex functions. To do this they must include the corre...

plus de 12 ans il y a | 1

Réponse apportée
libpointer.Value => The datatype and size of the value must be defined before the value can be retrieved.
What version of MATLAB are you useing? The DeviceInfo structure will not work in versions prior to R2007a. The two calls to ...

plus de 12 ans il y a | 0

Réponse apportée
How to use calllib in matlab to call a C function in the form: Void * funcName
The stack trace suggests that the problem came from pthreads I suspect the libfftw you are using expects a different version of ...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Problem with a pointer to a (array of) structure(s) when calling a DLL
No guarantees here because support for arrays of structs is limited and only works in recent versions of MATLAB. The way to all...

presque 13 ans il y a | 0

Réponse apportée
Has the Matlab Startup Accelerator utility in any way affected system performance / memory usage for anybody?
The MATLAB startup accelerator is quite simple, it reads in the files that will be loaded/run when MATLAB is started then the pr...

presque 13 ans il y a | 3

| A accepté

Réponse apportée
Why do some commands run faster or slower in the command line than an M.file?
Look at your preallocated command line example you have: x = zeros(1, 100000);x = 0; Remove the x=0 and it will run much ...

presque 13 ans il y a | 1

| A accepté

Réponse apportée
Why is a doublePtr output argument actually a double?
This is a convenience for the user. When MATLAB knows the size and type of a simple output pointer it automatically copies the ...

presque 13 ans il y a | 0

Réponse apportée
Properly passing pointer arguments to .dll functions using loadlibrary and calllib
Your library is not correctly loaded, trying to call the functions in without fixing the load will only lead to frustration with...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
Problem loading library nicaiu.dll
Some of these warnings are unavoidable and others may be fixable. If the functions you wish to use do not have warnings associat...

presque 13 ans il y a | 1

Réponse apportée
()-indexing must appear last in an index expression
MATLAB does not support arrays of function handles (some earlier versions did what version are you using?). Use a cell array co...

presque 13 ans il y a | 1

| A accepté

Réponse apportée
error in using calllib
Given the header and code you posted it looks like you are not exporting your function from the library. Read up on building a ...

environ 13 ans il y a | 0

Réponse apportée
Array of user defined types with external libraries
If you have at least R2009a then there is limited support for arrays of structures. Create a matlab structure array first then c...

environ 13 ans il y a | 1

| A accepté

Réponse apportée
Using windows messages to interface with data acquisition
To do this you will need a mex or loadable c function that creates a dummy window that can receive the messages and does the nee...

environ 13 ans il y a | 0

Réponse apportée
Compling Mex function with SECURE_SCL=0
Mex defaults to secure_scl=0. Verify this with mex -v myfile.cpp. Defining secure_scl=1 will break a great deal of legacy code...

environ 13 ans il y a | 0

Réponse apportée
Differences in h-file support between Win/Linux for dll/so
The differences you are seeing are due to bug fixes and enhancements made between R2009a and R2011b not the platform being used...

environ 13 ans il y a | 0

Réponse apportée
Strategies for Efficient Use of Memory
64 bit systems to not actually solve this problem, but because of the much larger virtual address space available it is not an i...

plus de 13 ans il y a | 0

Réponse apportée
Is this a Possible MATLAB bug? (Further strange Behavior)
There is a bug but it is the opposite of what you think. function ans=foo(s) s; end Should error in all cases, a...

plus de 13 ans il y a | 4

| A accepté

A résolu


Making change
Given an amount of currency, return a vector of this form: [100 50 20 10 5 2 1 0.5 0.25 0.1 0.05 0.01] Example: Input a = ...

plus de 13 ans il y a

A résolu


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

plus de 13 ans il y a

A résolu


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

plus de 13 ans il y a

A résolu


Add two numbers
Given a and b, return the sum a+b in c.

plus de 13 ans il y a

A résolu


Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

plus de 13 ans il y a

A résolu


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

plus de 13 ans il y a

A résolu


Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

plus de 13 ans il y a

A résolu


Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

plus de 13 ans il y a

A résolu


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

plus de 13 ans il y a

A résolu


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

plus de 13 ans il y a

A résolu


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

plus de 13 ans il y a

Charger plus