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

fast 13 Jahre vor | 1

| akzeptiert

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 1

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 0

| akzeptiert

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 3

| akzeptiert

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

etwa 13 Jahre vor | 1

| akzeptiert

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 0

| akzeptiert

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

etwa 13 Jahre vor | 1

Beantwortet
()-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...

etwa 13 Jahre vor | 1

| akzeptiert

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

mehr als 13 Jahre vor | 0

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

mehr als 13 Jahre vor | 1

| akzeptiert

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

mehr als 13 Jahre vor | 0

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

mehr als 13 Jahre vor | 0

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

mehr als 13 Jahre vor | 0

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

mehr als 13 Jahre vor | 0

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

mehr als 13 Jahre vor | 4

| akzeptiert

Gelöst


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

mehr als 13 Jahre vor

Gelöst


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

mehr als 13 Jahre vor

Gelöst


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

mehr als 13 Jahre vor

Gelöst


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

mehr als 13 Jahre vor

Gelöst


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

mehr als 13 Jahre vor

Gelöst


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

mehr als 13 Jahre vor

Gelöst


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

mehr als 13 Jahre vor

Gelöst


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

mehr als 13 Jahre vor

Gelöst


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

mehr als 13 Jahre vor

Gelöst


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

mehr als 13 Jahre vor

Gelöst


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

mehr als 13 Jahre vor

Mehr laden