Answered

How to prevent .xlsread to turn string data to NaN value

MATLAB doesn't give the option to store 'string' and 'double' in an double array. You can read the excel file and store it in a ...

How to prevent .xlsread to turn string data to NaN value

MATLAB doesn't give the option to store 'string' and 'double' in an double array. You can read the excel file and store it in a ...

8 Monate ago | 0

| accepted

Answered

How to find index in a single array?

Try this : A=[3, 4, 6, 9, 12, 34, 56, 99, 105, 190]'; B=[4, 12, 34, 56]' ; D=[1:200;1:200;1:200;1:200]'; [val,ind]=intersect...

How to find index in a single array?

Try this : A=[3, 4, 6, 9, 12, 34, 56, 99, 105, 190]'; B=[4, 12, 34, 56]' ; D=[1:200;1:200;1:200;1:200]'; [val,ind]=intersect...

8 Monate ago | 1

Answered

FOR loop taking every row from a matrix

Let's call input [3x159] matrix be Xin, and the final output [3x159] matrix be Xout. Here's is the code I would try : Xout = ze...

FOR loop taking every row from a matrix

Let's call input [3x159] matrix be Xin, and the final output [3x159] matrix be Xout. Here's is the code I would try : Xout = ze...

8 Monate ago | 0

| accepted

Answered

Cut Off subplots in figure window

Try this: x = rand(10,10); y = x; z = x; azleft = 0; azright = 0; elleft = 90; elrright = 90; topologie = figure; link...

Cut Off subplots in figure window

Try this: x = rand(10,10); y = x; z = x; azleft = 0; azright = 0; elleft = 90; elrright = 90; topologie = figure; link...

8 Monate ago | 0

| accepted

Answered

Write a scilab code to fit a straight line for the following data.

Use 'polyfit' to fit data to required polynomial degree. take a look : help polyfit I hope this helps.

Write a scilab code to fit a straight line for the following data.

Use 'polyfit' to fit data to required polynomial degree. take a look : help polyfit I hope this helps.

8 Monate ago | 0

Answered

legend with specific colors

Right now you are plotting one dataset of 'Lon' and 'Lat' at a time and this will give you a plot with number of datasets equal ...

legend with specific colors

Right now you are plotting one dataset of 'Lon' and 'Lat' at a time and this will give you a plot with number of datasets equal ...

8 Monate ago | 1

| accepted

Solved

Triangle sequence

A sequence of triangles is constructed in the following way: 1) the first triangle is Pythagoras' 3-4-5 triangle 2) the s...

8 Monate ago

Solved

Is this triangle right-angled?

Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

8 Monate ago

Solved

Find a Pythagorean triple

Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

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

8 Monate ago

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

8 Monate ago

Solved

Dimensions of a rectangle

The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...

8 Monate ago

Solved

Side of a rhombus

If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<http://upload.wikimedia.org/wikipe...

8 Monate ago

Solved

Side of an equilateral triangle

If an equilateral triangle has area A, then what is the length of each of its sides, x? <<http://upload.wikimedia.org/wikipe...

8 Monate ago

Solved

Area of an equilateral triangle

Calculate the area of an equilateral triangle of side x. <<http://upload.wikimedia.org/wikipedia/commons/e/e0/Equilateral-tr...

8 Monate ago

Solved

Length of the hypotenuse

Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

8 Monate ago

Solved

Length of a short side

Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

8 Monate ago

Answered

How do I save my data from each loop iteration into a single matrix?

save(sprintf('rft%04d.mat',k),'rf_data','tstart') There should be " i " in place "k" in the above line and you will be able to ...

How do I save my data from each loop iteration into a single matrix?

save(sprintf('rft%04d.mat',k),'rf_data','tstart') There should be " i " in place "k" in the above line and you will be able to ...

9 Monate ago | 0

Answered

FFT and plot amplitude spectrum

You might wanna use "logarithmic plot" instead of simple plot. So last line would be loglog(f,m);

FFT and plot amplitude spectrum

You might wanna use "logarithmic plot" instead of simple plot. So last line would be loglog(f,m);

10 Monate ago | 0

| accepted

Answered

How do I use simulink for a function then import it into a mat file

If you want output of 1x4 matrix, which will tell you the polynomial value of each corresponding element of X matrix, then you c...

How do I use simulink for a function then import it into a mat file

If you want output of 1x4 matrix, which will tell you the polynomial value of each corresponding element of X matrix, then you c...

10 Monate ago | 0

Question

Unable to access Matlab online, even though MATALB standard individual license is installed on pc.

Hello there, I am trying to use MATLAB online, I checked the eligibility for MatLab online and it showed bunch of license type ...

10 Monate ago | 1 answer | 0

Solved

Implement a ROT13 cipher

Replace each character in string s1 with the character that is shifted 13 positions from it (wrap back to the beginning if neces...

10 Monate ago

Solved

Indexed Probability Table

This question was inspired by a Stack Overflow question forwarded to me by Matt Simoneau. Given a vector x, make an indexed pro...

10 Monate ago

Solved

Read a column of numbers and interpolate missing data

Given an input cell array of strings s, pick out the second column and turn it into a row vector of data. Missing data will be i...

10 Monate ago

Solved

Alphabetize by last name

Given a list of names in a cell array, sort the list by the last name. So if list = {'Barney Google','Snuffy Smith','Dagwood ...

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

10 Monate ago

Solved

Kaprekar Steps

6174 is the <http://en.wikipedia.org/wiki/6174_%28number%29 Kaprekar constant>. All natural numbers less than 10,000 (except som...

10 Monate ago

Solved

Find common elements in matrix rows

Given a matrix, find all elements that exist in every row. For example, given A = 1 2 3 5 9 2 5 9 3 2 5 9 ...

10 Monate ago

Solved

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

10 Monate ago

Solved

Test for balanced parentheses

Given the input inStr, give the boolean output out indicating whether all the parentheses are balanced. Examples: * If ...

10 Monate ago