Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

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

casi 10 años hace | 1

| aceptada

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

casi 10 años hace | 1

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

casi 10 años hace | 1

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

casi 10 años hace | 1

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

casi 10 años hace | 1

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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.

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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.

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Cargar más