Too many input arguments ?
The function fplot is used to plot functions. The input that you are providing are array elements so you could rather use plot(...

bijna 4 jaar ago | 0

Continue for nested loops
You could try out this for jj = 1:5 f(x)=... for ii = 15+j:20 f(x)=... continue ...

bijna 4 jaar ago | 1

Solved

Find the maximum number of decimal places in a set of numbers
Given a vector or matrix of values, calculate the maximum number of decimal places within the input. Trailing zeros do not coun...

bijna 4 jaar ago

Solved

Matlab Basics - Rounding III
Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000

bijna 4 jaar ago

Solved

Make roundn function
Make roundn function using round. x=0.55555 y=function(x,1) y=1 y=function(x,2) y=0.6 y=function(x,3) ...

bijna 4 jaar 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...

bijna 4 jaar ago

Solved

Matlab Basics - Rounding II
Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346

bijna 4 jaar ago

how can I plot particular rows of a matrix?
You could first start by reading the columns into an array data=readtable('Price.txt'); prices=data(:,3:30); n=5; %in order t...

bijna 4 jaar ago | 0

| accepted

Solved

MATLAB Basic: rounding IV

bijna 4 jaar ago

Solved

MATLAB Basic: rounding III

bijna 4 jaar ago

Solved

Check that number is whole number
Check that number is whole number Say x=15, then answer is 1. x=15.2 , then answer is 0. <http://en.wikipedia.org/wiki/Whole...

bijna 4 jaar ago

Solved

MATLAB Basic: rounding II

bijna 4 jaar ago

Solved

MATLAB Basic: rounding
Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

bijna 4 jaar ago

Solved

Return a list sorted by number of occurrences
Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...

bijna 4 jaar ago

Solved

Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

bijna 4 jaar ago

Solved

Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

bijna 4 jaar ago

Solved

Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

bijna 4 jaar ago

Solved

Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

bijna 4 jaar ago

Solved

Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

bijna 4 jaar ago

Solved

Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

bijna 4 jaar ago

Solved

Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

bijna 4 jaar 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...

bijna 4 jaar ago

Solved

Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

bijna 4 jaar ago

Solved

Return area of square
Side of square=input=a Area=output=b

bijna 4 jaar ago

How does one plot only the maximum y value for an x value with multiple y values?
Hi Geoff, After seeing the data you provided im assuming the data set it something like y4=[5 5 4 4 3 3 ...

bijna 4 jaar ago | 0

How can I write a matlab code for the below mentioned expression?
Hi Anomitra, For the variable 'ne' you could define it as a Np x Np with diagonal elements as 0 and non diagonal elements as 1 ...

bijna 4 jaar ago | 0

| accepted

Decimal to binary, bit reversal of binary and binary to decimal
I suppose the error has to do with the command 'fliplr' Could you rather try the function 'flipud' X = flipud(b);

bijna 4 jaar ago | 0

Solved

Fill a zeros matrix
The aim is to fill an array of all zeros given a numerical value and the index of row and columns for this value. 3 Inputs: ...

bijna 4 jaar ago