已解决


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 months 前

已解决


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 months 前

已解决


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

11 months 前

已解决


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 months 前

提问


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

1 year 前 | 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 years 前 | 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 years 前 | 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 years 前 | 3 个回答 | 0

3

个回答

已解决


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

3 years 前

提问


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 years 前 | 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 years 前 | 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 years 前 | 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 years 前

已解决


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 years 前

已解决


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 years 前

已解决


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 years 前

已解决


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 years 前

已解决


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 years 前

已解决


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

4 years 前

已解决


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 years 前

已解决


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 years 前

已解决


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 years 前

已解决


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

4 years 前

已解决


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 years 前

已解决


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 years 前

已解决


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 years 前

已解决


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 years 前

已解决


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 years 前

已解决


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 years 前

已解决


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

4 years 前

加载更多