문제를 풀었습니다


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

11개월 전

문제를 풀었습니다


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<https://i.imgu...

11개월 전

문제를 풀었습니다


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

11개월 전

문제를 풀었습니다


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

11개월 전

질문


input parser on a cell array
I have an input cell array example A = {'1234','4567','8901'} I wish to user the input parser addParameter to check each entry ...

거의 2년 전 | 답변 수: 1 | 0

1

답변

질문


Simulink, model returning an error (on compilation) but give's no indication of the signal/parameter concerned
Hi, I have a real problem, which I do not know how to solve. An error is signalled when compiling my simulink model "Simulink ...

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

1

답변

질문


Find field which are cells arrays within a Complex Structure
Hi, I have a complex structure in which some of the sub - sub - sub.... fields maybe cell arrays. However Simulink does to hand...

2년 초과 전 | 답변 수: 0 | 0

0

답변

질문


Add Fields to an existing Structure
Hi, I have structure, for example S.Level0=0 I have a field structure I want to add to S namely S.Level1.SubLevel0.SubLevel...

2년 초과 전 | 답변 수: 3 | 0

3

답변

문제를 풀었습니다


Converting binary to decimals
Convert binary to decimals. Example: 010111 = 23. 110000 = 48.

대략 3년 전

질문


Matlab2020a Stores DMR files to C: drive
Good Evening, The workstaions I run the model on have lots of RAM and no spare (well < 30GB) C: drive capacity. Does an opti...

3년 초과 전 | 답변 수: 0 | 1

0

답변

질문


Windows Server 2012 & Matlab 2020a
Good Morning, Although stating not supported. Has anyone attempted to run Matlab 2020a on a HPC cluster running Windows Server...

거의 4년 전 | 답변 수: 1 | 0

1

답변

질문


For ... Next Loops
The problem I would like to use xlsread to define inputs to a function - I have many combinations of inputs to contend with...

거의 4년 전 | 답변 수: 0 | 0

0

답변

문제를 풀었습니다


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

거의 4년 전

문제를 풀었습니다


Create a cell array out of a struct
Create a cell array out of a (single) struct with the fieldname in the first column and the value in the second column: in: ...

거의 4년 전

문제를 풀었습니다


Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

거의 4년 전

문제를 풀었습니다


sum of first 'n' terms
Given n=10, find the sum of first 'n' terms Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these n=10 terms is 55...

거의 4년 전

문제를 풀었습니다


Evaluating a polynomial
Given the following polynomial and the value for x, determine y. y = 3x^5 – x^3 + 8x – 3 Example x = 1 y = 3 - 1 +...

거의 4년 전

문제를 풀었습니다


multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

거의 4년 전

문제를 풀었습니다


given 3 sides, find area of this triangle
1:3 -> 0; 3:5 -> 6

거의 4년 전

문제를 풀었습니다


Compute a dot product of two vectors x and y
x and y are input vectors, d is a number and contains their dot product

거의 4년 전

문제를 풀었습니다


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]

거의 4년 전

문제를 풀었습니다


Remove any row in which a NaN appears
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...

거의 4년 전

문제를 풀었습니다


Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

대략 4년 전

문제를 풀었습니다


Return the 3n+1 sequence for n
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...

대략 4년 전

문제를 풀었습니다


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

대략 4년 전

문제를 풀었습니다


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

대략 4년 전

문제를 풀었습니다


Create times-tables
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...

대략 4년 전

문제를 풀었습니다


Interpolator
You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

대략 4년 전

문제를 풀었습니다


Count ones
Write a program to count number of ones (1s) in an integer variable input. For example: Input x=2200112231 output y=3 I...

대략 4년 전

문제를 풀었습니다


Max of a Vector
Write a function to return the max of a vector

대략 4년 전

더 보기