Question

Vector with elements, reconstructable after addition...

Hi, ok, you will notice that I am not very proficient in mathematics, so please excuse my lack of terminology in asking this ...

3 years ago | 0 Answers | 0

Question

Matlab crashes when manipulating an array generated by a mex function

Dear all, I have written a Mex-function that generates an array. Actually, it is a topological sort algorithm. Now let's sa...

4 years ago | 1 Answers | 0

Question

Populate structure array efficiently

Hi, I am wondering if this question is too simple and if I am missing something important. How do I efficiently populate a st...

4 years ago | 2 Answers | 0

Question

InputParser and function handle

Hi, I want to use the InputParser Class to check the inputs of a function. Basically my function looks like this funct...

4 years ago | 1 Answers | 0

Solved

Vectorize the digits of an Integer

Create a vector of length N for an integer of N digits. x=123045; x_vec=[1 2 3 0 4 5]; I happened upon a trick to do ...

4 years ago

Question

Pass data to an instance of a class outside the constructor

Dear all, I am currently working on a class that is associated with various methods. One of the methods (function) produces s...

4 years ago | 1 Answers | 0

Question

Topological sort

Hi, I am looking for an implementation of a MATLAB function that performs a topological sort of an directed acyclic graph bas...

4 years ago | 0 Answers | 1

Question

Zooming resizes axes

Dear all, I am working on my first GUI and already [edited] beginning to love it [until here] :-) I am not managing it to obtai...

5 years ago | 2 Answers | 1

Responded

Re: sum of each elements in a matrix

Krishna, sum(unique(X)) <-- this is a joke, isn't it! How about sum(flipud(log(exp(sort(X(:)*2/2)))) Might be even more ineffi...

5 years ago | 15284 views

Responded

Re: a huge loss for the file exchange

If John removed nearly all his files, this would be a tremendous loss for the community. Hope to have you back here, John!

5 years ago | 11038 views

Question

Fuzzy membership and defuzzification

Dear all, I know this question might be better placed at a statistics forum. Still, since I am used to code in Matlab I thought...

5 years ago | 0 Answers | 0

Question

Return to previous zoom level/location

Let's say I have created a figure using imagesc imagesc(X(1,:),Y(:,1),I) and I have then used the manual zoom tool to lo...

5 years ago | 1 Answers | 0

Answered

Two functions with the same name - how to directly call one of both

Thanks for your replies, Laura and Jan. It helped.

Two functions with the same name - how to directly call one of both

Thanks for your replies, Laura and Jan. It helped.

5 years ago | 0

Question

Two functions with the same name - how to directly call one of both

I use the image processing toolbox and another toolbox that both have the function watershed. Is there a way to explicitly call ...

5 years ago | 2 Answers | 0

Posted

series

Dear all, Say for n = 1; I want the output 1 n = 2; I want the output [1 1 2] for n = 3; I want the output [1 1 2 1 1 2 3] ...

6 years ago | 1261 views

Responded

Re: spfun

Hi Arl, what about this? C = A.*spfun(@(x) 1./x,B); Best regards, anon

7 years ago | 7175 views

Responded

Re: Need help!! brain tumor Identification

Hey, before you start, get your keyboard fixed. Besssst reeeegarddss, Anon

7 years ago | 3019 views

Responded

Re: boxplot, grouping variables

Hi Valentina, try following: group = [ones(size(t1);ones(size(t2))+1;ones(size(t3))+2]; x = cat(1,t1,t2,t3); boxplot(x,group); ...

7 years ago | 16302 views

Posted

remove last element of a matrix

a = 1:61; % delete last element a(end) = [];

7 years ago | 6594 views

Responded

Re: Error using class boundary

Hello?? " ??? Undefined variable "boundaries" or class "boundaries". " should say all. You create a vector or cell array fronti...

7 years ago | 1490 views

Posted

The FEX MUST be moderated...

otherwise morons get control of it. A quick look at the comments and ratings in http://www.mathworks.com/matlabcentral/fileexcha...

8 years ago | 2911 views