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

oltre 13 anni fa | 1

| accettato

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

oltre 13 anni fa | 0

| accettato

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

oltre 13 anni fa | 1

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 0

| accettato

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 3

| accettato

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

oltre 13 anni fa | 1

| accettato

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 0

| accettato

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

oltre 13 anni fa | 1

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

oltre 13 anni fa | 1

| accettato

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 1

| accettato

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

oltre 13 anni fa | 0

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 4

| accettato

Risolto


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

quasi 14 anni fa

Risolto


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

quasi 14 anni fa

Risolto


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

quasi 14 anni fa

Risolto


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

circa 14 anni fa

Risolto


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

circa 14 anni fa

Risolto


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

circa 14 anni fa

Risolto


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

circa 14 anni fa

Risolto


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

circa 14 anni fa

Risolto


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

circa 14 anni fa

Risolto


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

circa 14 anni fa

Risolto


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

circa 14 anni fa

Carica altro