解決済み


MATLAB 101: Scalar-Vector Multiplication
Write a MATLAB function that takes a numeric array (vector or matrix) v and a scalar multiplier s. The function should return a ...

3ヶ月 前

解決済み


MATLAB 101: Count the Evens
Write a MATLAB function that accepts an array of integers and returns the total count of even numbers present in the array. Note...

3ヶ月 前

解決済み


MATLAB 101: Replace Negatives with Zero
Write a MATLAB function that takes a numeric array (vector or matrix) of numbers and replaces all negative numbers with zero. Po...

3ヶ月 前

解決済み


MATLAB 101: Reverse a Vector
Write a MATLAB function that takes a 1D vector (either a row or a column vector) and returns the vector with its elements in exa...

3ヶ月 前

解決済み


MATLAB 101: Rectangle Properties
Write a MATLAB function that accepts the length (L) and width (W) of a rectangle and returns two outputs: its area and its perim...

3ヶ月 前

解決済み


MATLAB 101: Hypotenuse Calculator
Write a MATLAB function that accepts the base and height of a right-angled triangle (or arrays of bases and heights) and returns...

3ヶ月 前

解決済み


MATLAB 101: Equivalent Resistance Calculator
Calculate the equivalent resistance R_eq for n resistors connected in Series or Parallel.

3ヶ月 前

解決済み


MATLAB 101: Extracting Even/Odd Values
Given an array or a matrix, extract all elements that satisfy a specified parity condition ('even' or 'odd') and return them as ...

3ヶ月 前

解決済み


MATLAB 101: Student Marks Analyzer
An array is given that contains the marks received by a group of students in their class test. Write a function that processes t...

3ヶ月 前

解決済み


MATLAB 101: Area of a circle
Write a MATLAB function named circle_area that accepts the radius r as an input and returns the area of the circle.

3ヶ月 前

解決済み


MATLAB 101: Basic Calculator
Write a MATLAB function named basic_calculator that accepts two input numbers, A and B, and returns four distinct outputs: The ...

3ヶ月 前

解決済み


Draw '\'
Can you draw the sign '\' by zeros and ones? NOTICE: Be x-by-x matrix.

3ヶ月 前

解決済み


Calculate color coordinates in CIE 1931 color space
For given wavelength lambda, calculate corresponding the color coordinates (rounded to 4-decimals) in CIE 1931 color space. Exa...

3ヶ月 前

解決済み


First Unique Character
Given a character vector s, return the first character that appears exactly once in s. If every character repeats at least once...

3ヶ月 前

解決済み


Prime or No
If the number is prime, make theCase = "YES", else, make it "NO".

3ヶ月 前

解決済み


Multiply the Diagonals of Two Vectors
Find the diagonals of vectors a and b and multiply them.

3ヶ月 前

解決済み


Watermelon [MATLAB Cody Edition]
YOU CAN READ THE REAL CHALLENGE FROM THIS URL AND APPLY IT https://codeforces.com/problemset/problem/4/A NOW INSTEAD OF DISP...

3ヶ月 前

解決済み


varargin
Write a function that can take a diffrent Amount of inputs for every run Which gives you the sum of all Inputs. Example: f(a,b...

3ヶ月 前

解決済み


Switch-Case-Otherwise
You should make random numbers to 10, by 3 rows and 3 columns. Cases from 1 to 3, b = true. Otherwise, b = false.

3ヶ月 前

解決済み


List Chen primes
A Chen prime is a prime number p such that p+2 is either prime or semiprime. The number 17 is a Chen prime because 17+2 = 19 is ...

3ヶ月 前

解決済み


Problem Set 2
Make a calculator by the four main operators (op): + - * / And the two numbers (n1, n2). Don't forget to check to divisio...

3ヶ月 前

解決済み


Problem Set 1
You will get the vector "v", you should put it's length in a variable called "lngth", then... If it's length from 1 to 5, sz = ...

3ヶ月 前

解決済み


NOT
If a not equal to zero, b = true, else, b = false.

3ヶ月 前

解決済み


OR
If a greater than zero or c less than 10, b = true, else, b = false.

3ヶ月 前

解決済み


AND
If a greater than 0 and n less than 10, b = true, else, b = false. (Checking a should be in one line by AND special sign in MAT...

3ヶ月 前

解決済み


Nested If(s)
If a greater than zero, then check, if a = greater that 1 and less than 10, then b = true, else, b = false.

3ヶ月 前

解決済み


List the semiprimes
A semiprime number—or a 2-almost prime—is the product of two prime numbers. The numbers and are semiprimes, but and are not....

3ヶ月 前

解決済み


If-Elseif-Else
If a more than zero, b = true, if a = zero , b = zero, else, b = false.

3ヶ月 前

解決済み


If-Else
If a more than zero, b = true, else, b = false.

3ヶ月 前

解決済み


If
If a more than zero, then b = true.

3ヶ月 前

さらに読み込む