Question


Problems with struct pointer pointer in calllib
I'm working with a header that has the following declaration: struct ADI_FileHandle__ { int unused; }; typedef struct ADI_F...

meer dan 10 jaar ago | 0 answers | 0

0

answers

Answered
array pointers in matlab
Just in case anyone comes across this, I think you want the following: For: void __stdcall Test(int16_t outputArray[], int32...

meer dan 10 jaar ago | 0

Solved


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

bijna 11 jaar ago

Answered
Unexpected Matlab edge case behavior
The dimensionality of a matrix is not always well specified. Using normal arrays, it is impossible to tell if a vector is really...

bijna 11 jaar ago | 1

Answered
Unexpected Matlab edge case behavior
This answer originally came from the following link, although I didn't really understand it until I actually ran into an error i...

bijna 11 jaar ago | 3

| accepted

Question


Unexpected Matlab edge case behavior
I recently stumbled upon an edge case in Matlab where indexing doesn't always work as expected (See answers below). What edges c...

bijna 11 jaar ago | 6 answers | 2

6

answers

Answered
how to access cells of n-dimensional array without colon operator?
See: <http://www.mathworks.com/matlabcentral/answers/58825-how-can-i-dynamically-assign-access-elements-in-a-matrix-with-arbitr...

bijna 11 jaar ago | 1

Answered
Working with unicode paths
As others have alluded to, the problem seems to be with Matlab touching the character data. I still don't have a solution for ch...

bijna 11 jaar ago | 1

| accepted

Question


Directory listing of extended ascii in windows
*EDIT:* This question raised some interesting issues but I don't consider it to be answered. Based on feedback from this questi...

bijna 11 jaar ago | 2 answers | 3

2

answers

Question


Working with unicode paths
The following is a followup to: <http://www.mathworks.com/matlabcentral/answers/85508-directory-listing-of-extended-ascii-in-...

bijna 11 jaar ago | 3 answers | 1

3

answers

Answered
DEcoding of run length snd huffman for image compression
I am not aware of any that you would want to actually use. When working on a similar project involving JPEG I was unable to find...

ongeveer 11 jaar ago | 0

| accepted

Question


Scalar assignment and nargout bump
I am trying to do the following: s = [objs.s] % s may be a struct array (really object array) or empty [] [s.prop] =...

ongeveer 11 jaar ago | 1 answer | 1

1

answer

Answered
'Subscripted assignment between dissimilar structures' thrown on empty struct
If you choose not to initialize you can loop backwards however it is generally best to declare the variable as a structure. This...

ongeveer 11 jaar ago | 0

Answered
addprop Adds Properties To Multiple Instances?
It seems like you have two different issues going on, first, from your question: classdef B < hgsetget properties ...

ongeveer 11 jaar ago | 0

Answered
Why is it not possible to change access attribute of methods in subclasses?
I realize at this point this is an old post but I would like to have a solution like this. In my case I wanted to be able to mak...

ongeveer 11 jaar ago | 0

Answered
What is missing from MATLAB?
Here's one I've been wishing I could do recently: my_data(start_index::length_variable) instead of: my_data(start_i...

ongeveer 11 jaar ago | 1

Answered
How to remove outliers from 2D array
Replace invalid values with NaN. You can then use the function nanmean with the stats toolbox or there is a FEX posting with ...

ongeveer 11 jaar ago | 0

| accepted

Answered
Dynamic colors in a plot
Perhaps you want to check out the FEX for cline submissions. http://www.mathworks.com/matlabcentral/fileexchange/3747-cline-m...

ongeveer 11 jaar ago | 0

Answered
How can I automatically download from a url?
Use urlwrite to retrieve the file. Unfortunately http does not support directory enumeration like FTP does so you'll need to kno...

ongeveer 11 jaar ago | 0

Question


How do I detect volume collisions?
My data consists of a 3d matrix. In this matrix there will be two distinct points/volumes that have low values. As the values in...

ongeveer 11 jaar ago | 2 answers | 0

2

answers

Answered
regexp usage for cellArray data which includes both characters and numbers.
Try not to use lookaround operators in Matlab. If you only want the first column: first_column_string = regexp(cellArray...

ongeveer 11 jaar ago | 0

Answered
How do I randomly assign two integers to an array of strings?
I like to think of the solution as involving grouping the strings into two different groups. One way of doing this is to sort an...

ongeveer 11 jaar ago | 0

| accepted

Answered
Random elements of a vector which sum near a specific number
Here's a solution. Some notes: # Remove calculations from your loops, like the mean of the data, this doesn't change # s...

ongeveer 11 jaar ago | 0

| accepted

Answered
Problem with scatter plot over pcolor
Actually I think this is a bug. I am by no means a patch expert but it appears that scatter is implemented as a hggroup with a s...

ongeveer 11 jaar ago | 1

Question


XData, YData, CData, Fun Data! - single pixel image width
What would you expect the image limits to be from this function? (before running it): imagesc([0 1],[1 20],rand(1,10)) Am ...

ongeveer 11 jaar ago | 0 answers | 0

0

answers

Question


Hide package from tab completion
Is it possible to hide a package from tab completion?

ongeveer 11 jaar ago | 0 answers | 1

0

answers

Answered
Set Methods for Dynamic Properties with Unknown Names
You could add a listener that on pre set assigns the name to the object ... Basically just before you actually set the proper...

ongeveer 11 jaar ago | 0

Answered
How to generate a matrix whose rows numbers are not elements of a given row vector
The following code should do what you want. use_row = true(1,size(A,1)); use_row(v) = false; B = A(use_row,:);...

ongeveer 11 jaar ago | 0

| accepted

Question


Interrupt Java Execution in Matlab Using Ctrl-C
Is it possible to interrupt execution of a Java method in Matlab using ctrl-c? The only thing I could find from TMW is: <htt...

meer dan 11 jaar ago | 2 answers | 0

2

answers

Question


Cell array concatenation rules
I feel a bit silly asking this, but could someone explain the reasoning or thoughts behind the concatenation of cell arrays with...

meer dan 11 jaar ago | 0 answers | 1

0

answers

Load more