Farzam Malmir
Followers: 0 Following: 0
Feeds
문제를 풀었습니다
Find relatively common elements in matrix rows
You want to find all elements that exist in greater than 50% of the rows in the matrix. For example, given A = 1 2 3 5 ...
대략 2년 전
문제를 풀었습니다
Set the array elements whose value is 13 to 0
Input A either an array or a vector (which can be empty) Output B will be the same size as A . All elements of A equal to 13...
2년 초과 전
문제를 풀었습니다
Replicate elements in vectors
Replicate each element of a row vector (with NaN) a constant number of times. Examples n=2, A=[1 2 3] -> [1 1 2 2 3 3] ...
2년 초과 전
문제를 풀었습니다
First non-zero element in each column
For a given matrix, calculate the index of the first non-zero element in each column. Assuming a column with all elements zero i...
2년 초과 전
문제를 풀었습니다
Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.
2년 초과 전
문제를 풀었습니다
Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...
2년 초과 전
문제를 풀었습니다
Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...
2년 초과 전
문제를 풀었습니다
Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...
2년 초과 전
문제를 풀었습니다
Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...
2년 초과 전
문제를 풀었습니다
Get the length of a given vector
Given a vector x, the output y should equal the length of x.
2년 초과 전
문제를 풀었습니다
Read a column of numbers and interpolate missing data
Given an input cell array of strings s, pick out the second column and turn it into a row vector of data. Missing data will be i...
2년 초과 전
문제를 풀었습니다
Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the numbers. Otherwise return false. Example...
2년 초과 전
문제를 풀었습니다
Make a checkerboard matrix
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. Examp...
2년 초과 전
문제를 풀었습니다
Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...
2년 초과 전
문제를 풀었습니다
Solve a System of Linear Equations
Example: If a system of linear equations in x₁ and x₂ is: 2x₁ + x₂ = 2 x₁ - 4 x₂ = 3 Then the coefficient matrix (A) is: 2 ...
2년 초과 전
문제를 풀었습니다
Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...
2년 초과 전
문제를 풀었습니다
Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.
대략 4년 전
문제를 풀었습니다
Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...
대략 4년 전
질문
How to enable "Snap to Tick" for a slider in App Designer?
Hi, I want to know how to make a slider move discretely rather than continuously. As an example, I want the slider to jump from ...
거의 6년 전 | 답변 수: 1 | 1
1
답변질문
How to link to a web address or a local PDF file from App designer?
I am adding a small help section to my app including some additional information about the product and how to use it. To do so, ...
거의 6년 전 | 답변 수: 1 | 0
1
답변답변 있음
How to clear MATLAB Workspace directly through App designer
The problem solved by creating a Simulink file which simply contains a callback function to clear the workspace. Then I added a ...
How to clear MATLAB Workspace directly through App designer
The problem solved by creating a Simulink file which simply contains a callback function to clear the workspace. Then I added a ...
6년 초과 전 | 1
| 수락됨
질문
How to clear MATLAB Workspace directly through App designer
Hi, I have designed a GUI that successfully runs a Simulink model and then load the post processing results into App designer...
6년 초과 전 | 답변 수: 1 | 0
1
답변질문
How to store Appdesigner parameters in MATLAB workspace?
Hi, I have a Simulink model of a car and need to design a GUI in order for the users to change the desired parameters such as...
6년 초과 전 | 답변 수: 1 | 0
1
답변질문
How to pause/stop a Simulink model directly from App designer
Hi, I have already designed an application to initialize and run a Simulink model directly through App designer. I need to de...
6년 초과 전 | 답변 수: 1 | 0