Community Profile

### MathWorks

84 2019 年以降の合計貢献数

Error Using fscanf to open file
The file you want to open should be in the same folder that is currently open in MATLAB for your script. You can browse to the f...

3ヶ月 前 | 0

How to upload a zip file to Matlab?
I think this should work : unzip.

3ヶ月 前 | 1

| 採用済み

Area of an Isoceles Triangle
An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<http://upload...

4ヶ月 前

Quote Doubler
Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...

4ヶ月 前

Balanced number
Given a positive integer find whether it is a balanced number. For a balanced number the sum of first half of digits is equal to...

4ヶ月 前

Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

4ヶ月 前

Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

4ヶ月 前

Find the peak 3n+1 sequence value
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ヶ月 前

how to assign a color to individual bars in a bar chart using a colormap based on a separate series of values?
Check the dimensions of the matrices you are concatenating. Since the vals2colormap returns a 100x3 matrix (considering you want...

4ヶ月 前 | 0

how to assign a color to individual bars in a bar chart using a colormap based on a separate series of values?
You can change color of a particular bar using FaceColor property of bar graph. I followed this documentation example under Data...

4ヶ月 前 | 0

| 採用済み

https://www.mathworks.com/help/textanalytics/ref/htmltree.getattribute.html?s_tid=doc_ta I followed the example given on this l...

4ヶ月 前 | 0

It is possible to export a live script to an interactive webpage?
Check this documentation link. You can export live script as HTML as a static document.

4ヶ月 前 | 0

Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

4ヶ月 前

Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

4ヶ月 前

Create a vector
Create a vector from 0 to n by intervals of 2.

4ヶ月 前

Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

4ヶ月 前

Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

4ヶ月 前

Find max
Find the maximum value of a given vector or matrix.

4ヶ月 前

Get the length of a given vector
Given a vector x, the output y should equal the length of x.

4ヶ月 前

Inner product of two vectors
Find the inner product of two vectors.

4ヶ月 前

Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

4ヶ月 前

Find the alphabetic word product
If the input string s is a word like 'hello', then the output word product p is a number based on the correspondence a=1, b=2, ....

4ヶ月 前

Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

4ヶ月 前

Which doors are open?
There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...

4ヶ月 前

Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

4ヶ月 前

You just measured its surface area, that is the input.

4ヶ月 前

Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

4ヶ月 前

Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

4ヶ月 前

HOW TO CONVERT TIME IN NUMERIC FORMAT?
You can use the datetime function of Matlab. Send all the vectors as parameters to the function like this: datetime(yr_vector...

4ヶ月 前 | 0

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

4ヶ月 前