Gelöst


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

7 Monate vor

Gelöst


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

7 Monate vor

Gelöst


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

7 Monate vor

Gelöst


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

7 Monate vor

Frage


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

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 2 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

etwa 2 Jahre vor | 3 Antworten | 0

3

Antworten

Gelöst


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

mehr als 2 Jahre vor

Frage


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

etwa 3 Jahre vor | 0 Antworten | 1

0

Antworten

Frage


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

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 3 Jahre vor | 0 Antworten | 0

0

Antworten

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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]

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Mehr laden