Answered

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

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

ongeveer een maand ago | 0

Answered

How to upload a zip file to Matlab?

I think this should work : unzip.

How to upload a zip file to Matlab?

I think this should work : unzip.

ongeveer een maand 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...

ongeveer 2 maanden 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 ...

ongeveer 2 maanden 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...

ongeveer 2 maanden 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...

ongeveer 2 maanden 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 ...

ongeveer 2 maanden 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...

ongeveer 2 maanden ago

Answered

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

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

ongeveer 2 maanden ago | 0

Answered

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

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

ongeveer 2 maanden ago | 0

| accepted

Answered

Perform Google Search in Matlab

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

Perform Google Search in Matlab

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

ongeveer 2 maanden ago | 0

Answered

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.

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.

ongeveer 2 maanden 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.

ongeveer 2 maanden 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 ...

ongeveer 2 maanden 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 ...

ongeveer 2 maanden ago

Solved

Whether the input is vector?

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

ongeveer 2 maanden ago

Solved

Get the length of a given vector

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

ongeveer 2 maanden ago

Solved

Arrange Vector in descending order

If x=[0,3,4,2,1] then y=[4,3,2,1,0]

ongeveer 2 maanden 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, ....

ongeveer 2 maanden 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...

ongeveer 2 maanden 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...

ongeveer 2 maanden 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...

ongeveer 2 maanden ago

Solved

radius of a spherical planet

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

ongeveer 2 maanden 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...

ongeveer 2 maanden 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...

ongeveer 2 maanden ago

Answered

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

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

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

2 maanden ago