Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

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

quasi 10 anni fa | 1

| accettato

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

quasi 10 anni fa | 1

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

quasi 10 anni fa | 1

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

quasi 10 anni fa | 1

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

quasi 10 anni fa | 1

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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.

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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.

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Carica altro