Community Profile

Contact

Top 5% contributor

The boring work around : _"You can also work around the Ctrl+C issue by using Ctrl+Insert and Shift+Insert to copy and paste ...

1

Answered 10 months ago

Files and directories listing, including recursive and other special features

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

25553 views

Posted 6 years ago

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

13800 views

Responded 7 years ago

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

12060 views

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

Hi You should have a look to Matlab "who" function. returns the list of variables in the workspace as a cell array. You can t...

5559 views

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

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

5323 views

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

Solve this!

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

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

3 years ago

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

Load more

Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a location from the following list:

See all countries