Community Profile

### MathWorks

84 total contributions since 2019

View details...

Contributions in
View by

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

2 mois ago | 0

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

2 mois ago | 1

| accepted

Solved

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

3 mois ago

Solved

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

3 mois ago

Solved

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

3 mois ago

Solved

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

3 mois ago

Solved

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

3 mois ago

Solved

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

3 mois ago

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

3 mois ago | 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...

3 mois ago | 0

| accepted

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

3 mois ago | 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.

3 mois ago | 0

Solved

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

3 mois ago

Solved

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

3 mois ago

Solved

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

3 mois ago

Solved

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

3 mois ago

Solved

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

3 mois ago

Solved

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

3 mois ago

Solved

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

3 mois ago

Solved

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

3 mois ago

Solved

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

3 mois ago

Solved

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

3 mois ago

Solved

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

3 mois ago

Solved

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

3 mois ago

Solved

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

3 mois ago

Solved

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

3 mois ago

Solved

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

3 mois ago

Solved

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

3 mois ago

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

3 mois ago | 0

Solved

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

3 mois ago