문제를 풀었습니다


Return area of square
Side of square=input=a Area=output=b

4년 초과 전

문제를 풀었습니다


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

4년 초과 전

답변 있음
Display value to gui table
Hi, Arrange the result data in matrix form and set on the table using table handle. If the data is getting calculated in some o...

4년 초과 전 | 0

문제를 풀었습니다


Fibonacci-Sum of Squares
Given the Fibonacci sequence defined by the following recursive relation, * F(n) = F(n-1) + F(n-2) * where F(1) = 1 and F(1)...

4년 초과 전

문제를 풀었습니다


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

4년 초과 전

문제를 풀었습니다


generate the matrix
given a value n (say 4) - generate the matrix like below; y= [0 1 2 3 4; -1 0 1 2 3; ...

4년 초과 전

답변 있음
Bring Figure to main GUI and take control over that figure
If you wants to plot your data on GUI, you have to write the code in callback of some button from where you can control the fig....

4년 초과 전 | 0

| 수락됨

문제를 풀었습니다


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

4년 초과 전

문제를 풀었습니다


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

4년 초과 전

문제를 풀었습니다


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

4년 초과 전

문제를 풀었습니다


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

4년 초과 전

문제를 풀었습니다


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

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년 초과 전

답변 있음
Array indexing, matrix indexing
Hi, not sure why you are using the if condition as the statements are same in if and else block.. And use one more loop to get ...

4년 초과 전 | 0

답변 있음
AUTOSAR from arxml to model - errors using importerobj
ARXML file generally contains the information of AUTOSAR compliance interfaces and data definintions etc, the inside functionali...

4년 초과 전 | 0

질문


How to use Model Referencing in Target-link for incremental code generation?
I have developed a model which i want to reference in the main component model, but while generating code i am facing so many is...

대략 6년 전 | 답변 수: 0 | 0

0

답변

답변 있음
unable to run .m or .slx file from GUI pushbutton callback
GUI callback is basically a function which do not share base workspace. So when you calling your script through callback its va...

대략 6년 전 | 0

답변 있음
How to save each iteration of a nested for loop as rows
p =0; for i = 1:size(starttime,1) for j = 1:size(cell,2) ...

대략 6년 전 | 0

답변 있음
I am writing a code to read a text file
Use /r/n in your code

대략 6년 전 | 0

| 수락됨

답변 있음
merge image using matlab
Yes you can do this as: im1= imread('image1.jpg'); im2= imread('image2.jpg'); im3= imread('image3.jpg'); r = i...

대략 6년 전 | 0

| 수락됨

질문


how to swap input interfaces with each other without using switch or if block?
eg. I have four input interfaces H1,H2,H3 & H4. So based on some valid condition i have to swap these signals like this (H4->H1,...

대략 6년 전 | 답변 수: 1 | 0

1

답변

문제를 풀었습니다


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

8년 초과 전

문제를 풀었습니다


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

8년 초과 전

문제를 풀었습니다


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

8년 초과 전

문제를 풀었습니다


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

8년 초과 전

문제를 풀었습니다


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

8년 초과 전

문제를 풀었습니다


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

8년 초과 전

문제를 풀었습니다


Is my wife right?
Regardless of input, output the string 'yes'.

8년 초과 전

문제를 풀었습니다


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

8년 초과 전

문제를 풀었습니다


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

8년 초과 전

더 보기