Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Beantwortet
DISPLAYOPT must be 'on' or 'off'.
Maybe this will work stats_multcompare = multcompare(stats_KW,'display','off'); Just remove the second input argument, 0...

fast 10 Jahre vor | 1

| akzeptiert

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

fast 10 Jahre vor | 1

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

fast 10 Jahre vor | 1

Beantwortet
What do you like about MATLAB?
Using _Vectorization_ instead of loops. <https://www.mathworks.com/help/matlab/matlab_prog/vectorization.html>

fast 10 Jahre vor | 1

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

fast 10 Jahre vor | 1

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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.

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


Convert from integer to binary
if true % decimalToBinaryVector(x) end

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


How find maximum element of a column in matrix?
How find maximum element of a column in matrix?

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


how to round off a given number containing decimals?
how to round off a given number containing decimals?

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


How find minimum element of a column in matrix?
How find minimum element of a column in matrix?

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


product of given two numbers?
product of given two numbers?

fast 10 Jahre vor

Gelöst


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.

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Mehr laden