Community Profile

Contact

Top 5% contributor

Files and directories listing, including recursive and other special features

122 downloads

2 years ago

Hi Here is my problem If we consider two files whose path are : * studies_1\data\file.mat * studies_2\data\file.mat ...

2 Answers

0

Asked 4 years ago

I know I'm a bit late, but after (some) reflexion, I've found a one line solution without any loop using nansum (Statistical Too...

21061 views

Posted 5 years ago

You could maybe use the Matlab "fullfact" function (Statistics Toolbox) This function generate all possible combinaisons from N...

11553 views

Responded 6 years ago

Walter indeed mentionned that point first, but thanks anyway. When it doesn't work whereas it should, always suppose something ...

10415 views

Responded 5 years ago

Did you set the Uicontrol's "FontName" properties to "FixedWidth" ? Default Font has not a fixed width, what may explain that yo...

Sean : You can use the "listbox" UIControl and then modify the "ListboxTop" vlaue as explained above. The regexp is used only t...

Correction : It seems that ListboxTop doesn't work with "edit" UIControl. So.. see above solution

With Matlab 7.5 (R2007b), you can do the same as explained above with an "edit" UIControl instead of a "listbox". I think it was...

You don't need to look for the "hidden slider" of the listbox (you won't find it). You must use the "ListboxTop" property of yo...

If you have the Statistics Toolbox, you could use the "randsample" function. It returns a k by 1 vector of values sampled in a ...

4755 views

You can have a look to this old thread dealing with a similar problem : "Access bus signal names in S-function" http://www.math...

4465 views

Given a pathname string, return a condensed version by replacing intermediate folders with '..'. *Example* If fullpat...

Solve this!

11 months ago

For a given odd integer n, generate a matrix as follows: Input: n = 5; Output: [ 2 1 0 0 0 1 ...

1 year ago

HI! I am using GUI for the first time and enjoying it. There is one curious question after I hit the 'Run' button from my .fig f...

Generate the following matrix. n = 2; out = [-4 -3 -2 -1 0 -3 -2 -1 0 1 -...

Now that the introverts have had their script, the extroverts spoke up (naturally!) and demanded one as well. You will be given...

You are given a matrix full of numbers who happen to be very shy. Write a MATLAB function that will put a square of zeros aroun...

Given a vector with an even number of elements, rearrange it so that the elements in its first half are switched with those i...

When creating Matlab GUI elements, you can mix value pairs with structures in the list of input arguments, e.g. |uicontrol('t...

We start with vector V. Some values W will be inserted into V, at positions U. Say, |V| contains |[1 2 3 4 5]| and |W| is |[0...

When you plot a line that wraps, and do not want the sawtooth shape to show up in the plot, you can either draw all separate lin...

Build a function with two input arguments: a string and a word length (number of letters), that outputs a vector of counts of th...

* Given a string, containing several sentences, such as: * 'I played piano. John played football. Anita went home. Are you safe...

The goal is to create a function that will return a single "NaN" without using the nan function. I am interested to see how many...

Given a vector: [1 0 -1 3 2 -3 1] and a window of 2, A sliding window would find: 1 + 0 = 1 0 - 1 = -1 ...

Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

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

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

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

Load more