Community Profile

Contact

Top 5% contributor

Hello all, I have a mask subsystem. I saw that the *MaskCallback* is called when the user double-clicks it. In that callb...

3 Answers

0

Asked 2 years ago

You could create a small GUI using *GUIDE*. You can get the data from/to GUI using the commands *get* and *set*

accepted

Answered 2 years ago

Hello all, I am using both MATLAB 2011a and MATLAB 2012b and I have large .m files corresponding to the GUI`s that I have cre...

1

Hello all, I've created a toolbox and saved all the data in UserData. I've made the toolbox a library and after I copy the li...

1 Answers

Hello all, When a new model is created in Simulink, is there some unique Identifier also created that can be read ? Best...

I want to save the model with a different name and get the model name of the previous model. For example I have a model named...

Hello all, I`m trying to generate Embedded C code, but without the HW present(with the HW present it is working fine). I s...

Asked 3 years ago

I am trying to add my own library to the library browser. The problem is that the library that appears in the library browse...

Hello all, I have a mask(loads a GUI) with many variables that also exist in base. I want to be able to use the mask block mo...

2 Answers

I used *sl_customization* to add a new item to the model's menu. Now I want to change the order of the items. Is this possib...

Hello all, I want to know when a user renames a model with *F2*, either from *windows explorer* or from *MATLAB Current Folde...

Hello, I`m trying to see if a structure exists or not in the workspace (i`m checking the structure if it exists in another st...

A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

Solve this!

2 years ago

Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

Check if sorted. Example: Input x = [1 2 0] Output y is 0

There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

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

Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

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

Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

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

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

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

Load more