Solved

Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

mehr als 2 Jahre ago

How can i do a spider diagram (rhomboidal)?
See the following pages with Matlab's plotting capability and examples - I suspect you'r best achieving the radar plot with the...

mehr als 2 Jahre ago | 0

How to concatenate matrices
You must have got an error message when executing - what did it say? That should be your first clue as to what's wrong with the ...

mehr als 2 Jahre ago | 0

| accepted

Publishing the results as a webpage
Yes, it is possible. If you're code in in the *live script (.mlx)*, go to: * Live Script → Save → Export to HTML <</ma...

mehr als 2 Jahre ago | 0

| accepted

Find The Relationship between Data Set
Look into the following fucntions: * <https://uk.mathworks.com/help/matlab/ref/plotmatrix.html?searchHighlight=plotmatrix&s_t...

mehr als 2 Jahre ago | 0

Inserting blank columns at specific points
<https://uk.mathworks.com/matlabcentral/profile/authors/12095941-jacob-barrett-newton Jacob Barrett-Newton> thank you. * In g...

mehr als 2 Jahre ago | 0

Inserting blank columns at specific points
% import data to Matlab as a Table T_data = readtable('Data_of_interest.csv'); % get rid of meaningless columns/rows...

mehr als 2 Jahre ago | 1

| accepted

How to calculate Cycles
Consider the following code: data = [0.2 3 12 18 22 0.8 1.5 2.9 8 11 17 1 4 5 8 13 17 23 28]' % preallocation cyc...

mehr als 2 Jahre ago | 1

how to create matrix with multiple column vectors?
Regarding 'information about channel of particular user': # Is it all numerical values? # Is it mixed data i.e. channel 1 ho...

mehr als 2 Jahre ago | 0

Solved

Better bullseye matrix
<http://www.mathworks.com/matlabcentral/cody/problems/18-bullseye-matrix Problem 18> asks to create a bullseye matrix like this:...

mehr als 2 Jahre ago

Solved

Produce a cosine wave
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/cosine-eqn.png>>

mehr als 2 Jahre ago

Solved

Connect blocks in a model
Connect the blocks in the model to produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/connect-blocks...

mehr als 2 Jahre ago

Solved

Make a Star Pyramid
Create a star pyramid. First line will have 1 star, second will have two stars and so on... a basic program which is easily done...

mehr als 2 Jahre ago

Solved

Create a Multiplication table matrix...
Create a product table in this format: P = [ 1 2 3 4 5; 2 4 6 8 10; 3 6 9 12 15; 4 8 12 1...

mehr als 2 Jahre ago

Solved

"mirror" matrix
Create n x 2n "mirror" matrix of this type: Examples For n = 2 m = [ 1 2 2 1 1 2 2 1 ] For n = 3 m = ...

mehr als 2 Jahre ago

Solved

Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

mehr als 2 Jahre 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...

mehr als 2 Jahre ago

segregate table in mat lab
Consider the following code: % table t = array2table(rand(10,2)) rowNames = {'a1' 'a2' 'a3' 'a4' 'a5' 'b1' 'b2' 'b3' ...

mehr als 2 Jahre ago | 0

Write pre-existing variable names and their values to excel
If your variables are all numeric then consider the following code: % create variables a = 5; b = 10; c = 15; d...

mehr als 2 Jahre ago | 0

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

mehr als 2 Jahre ago

How do I plot this?? "if, elseif, else"
Firstly, I think that your first loop overwrites the *t* value instead of creating a vector of *t values*. For what you're...

mehr als 2 Jahre ago | 1

| accepted

no repeating numbers in a matrix
% 'mNumber' - number of 'm's' % 'elements' - number of elements in each 'm' mNumber = 2; elements = 3; M...

mehr als 2 Jahre ago | 0

How to flip sign in the X values, from time t=0 ?
Flip sign as in changing from positive to negative? x(t>0) = -x(t>0)

mehr als 2 Jahre ago | 2

| accepted

Question

Changing class of the variables in the table - I can't get it to work without a loop
See attached sample data. It contains a table with recorded data in the following fashion: * Column 1: duration * Column ...

mehr als 2 Jahre ago | 1 answer | 0

### 1

Division inside an array
fri = 1:3 j = 0:6 j = j' result = j./fri

mehr als 2 Jahre ago | 0

Array from text file
You can use Matlab import function and then change the import setting to what you need: <</matlabcentral/answers/uploaded_fil...

mehr als 2 Jahre ago | 0

Solved

Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

mehr als 2 Jahre ago

Solved

Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

mehr als 2 Jahre ago

Solved

Counting Money
Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: \$99,999.99. E...

mehr als 2 Jahre ago

How to create a box inside box?
It would have been easier if you'd attached the drawing of what your're finally trying to achieve as the description is quite un...

mehr als 2 Jahre ago | 0

| accepted