Solved

Tiling a matrix

Given a matrix and a number of columns, replicate matrix in a single row

5 years ago

Solved

Generate a vector like 1,2,2,3,3,3,4,4,4,4

Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

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

5 years ago

Answered

DISPLAYOPT must be 'on' or 'off'.

Maybe this will work stats_multcompare = multcompare(stats_KW,'display','off'); Just remove the second input argument, 0...

DISPLAYOPT must be 'on' or 'off'.

Maybe this will work stats_multcompare = multcompare(stats_KW,'display','off'); Just remove the second input argument, 0...

5 years ago | 1

| accepted

Answered

I would like to change existing values of parameters

If you just need to get a graph, this will help you function plotgraph y0 = 0:10; % Initial values for n = 1:length(y...

I would like to change existing values of parameters

If you just need to get a graph, this will help you function plotgraph y0 = 0:10; % Initial values for n = 1:length(y...

5 years ago | 1

Answered

Vectors must be the same lengths; plotting

You just need to modify variable _x_ to match the size of variable _simulated_ or variable _actual_. simulated=[0.0000000 ...

Vectors must be the same lengths; plotting

You just need to modify variable _x_ to match the size of variable _simulated_ or variable _actual_. simulated=[0.0000000 ...

5 years ago | 1

Answered

What do you like about MATLAB?

Using _Vectorization_ instead of loops. <https://www.mathworks.com/help/matlab/matlab_prog/vectorization.html>

What do you like about MATLAB?

Using _Vectorization_ instead of loops. <https://www.mathworks.com/help/matlab/matlab_prog/vectorization.html>

5 years ago | 1

Answered

How to make a function to make a vector with two input points?

To declare a function, you can use the statement like this: function [y1,...,yN] = myfun(x1,...,xM) each input and outpu...

How to make a function to make a vector with two input points?

To declare a function, you can use the statement like this: function [y1,...,yN] = myfun(x1,...,xM) each input and outpu...

5 years ago | 1

Solved

Do you like your boss?

Do you like your boss? Answer can be any string! For example: Boss = 'Do you like your boss?'; Output = 'yes' or ...

5 years ago

Solved

Rounding off numbers to n decimals

Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

5 years ago

Solved

Filter AC, pass DC

Input x is the sampled signal vector, may have both AC and DC components. Output vector y should not contain any AC component. ...

5 years ago

Solved

Change matrix to vector

Vector is a matrix whose size is 1 x n or n x 1. Change matrix to vector. x = 4 3 5 1 ...

5 years ago

Solved

How to calculate log?

There is a log that have base 5. How to calculate? log5(x)?

5 years ago

Solved

Find the number of rectangles

There is a m*n grade given. Find the number of rectangles in the grid. Remember, a square is also a rectangle.

5 years ago

Solved

Calculate circle's property

[A R]=function(r) r is radius, A is area of circles, R is circumference. A=pi*r^2 R=2*pi*r

5 years ago

Solved

Calculate area of sector

A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

5 years ago

Solved

BASICS - sum part of vector

Please make a function, where as input you get vector "x" and and vector "c", where in "c" vector you get indexes to sum. Examp...

5 years ago

Solved

How find maximum element of a column in matrix?

How find maximum element of a column in matrix?

5 years ago

Solved

Pancakes for everyone!

Accordingly to the <http://nl.mathworks.com/matlabcentral/cody/problems/42460-the-cake-is-a-lie problem 42460>. All the children...

5 years ago

Solved

How to permute given 3d matrix?

A(:,:,1)=[1 3] A(:,:,2)=[2 2] A(:,:,3)=[4 3] Change rows to columns and columns to rows, similar to transpose. Resul...

5 years ago

Solved

how to round off a given number containing decimals?

how to round off a given number containing decimals?

5 years ago

Solved

Calculate solution of given polynomial

For example, y=function([3 -2 -4]) In here, input vector indicate 3*x^2-2*x-4, y is solution of former equation. y=[1.5...

5 years ago

Solved

How find minimum element of a column in matrix?

How find minimum element of a column in matrix?

5 years ago

Solved

How to find average of each column ?

How to find average of each column for a given matrix?

5 years ago

Solved

Replace 0 to NaN!

In given matrix A=[1 nan nan; 2 2 nan; nan nan 1]; replace NaN to 0. Use matrix A as a input.

5 years ago

Solved

Independent direction vectors of a plane

Given the equation of a plan of the form ax+by+cz=d, return 2 independent direction vectors which could e.g. be used to determin...

5 years ago

Solved

Solve equation numerically

y'=y In order to solve equation using computer, numerical analysis are needed. 1st order Euler's method is one of the metho...

5 years ago

Solved

Find x in provided equation!

x^2-2*x+1=0 This polynomial can be expressed by using each term's coefficients, such as [1 -2 1]. Using the polynomial ...

5 years ago