Risolto


Check if inputted variable is a string or a number
Check if a inputted variable is a number or a string, given a string input (i.e. '1' is 1 and thus a number, 'a' is a string).

circa 9 anni fa

Risolto


Find the sum of the largest two elements in a vector
With this one, you have to find the two largest elements in a vector and output the sum of those numbers.

circa 9 anni fa

Risolto


Decimation
When dealing to the Roman Army, the term decimate meant that the entire unit would be broken up into groups of ten soldiers, and...

circa 9 anni fa

Risposto
How to use an index of a vector as a value in another matrix?
How about this? Assume you have the inputs: x = [1,1,2,2,3]; y = [1,3; 1,4; 2,3; 2,4]; Then, you can find indices ...

oltre 9 anni fa | 0

Risposto
A button in GUI to move on to next image from a for loop in a different push button.
I would advise against "displaying the images from the directories in a for loop." What about the following setup? * *Pushbut...

oltre 9 anni fa | 0

| accettato

Domanda


How can I find instances of a given class that exist?
If I create a figure with several graphics objects, h = figure; axes(...); axes(...); axes(...); I can find ins...

oltre 9 anni fa | 0 risposte | 3

0

risposte

Risposto
How to select particular column in xlsx file using xlsread function of MATLAB ?
Does this work? A = xlsread('test.xlsx','sheet1','A:A'); M = xlsread('test.xlsx','sheet1','M:M'); plot(A,M);

oltre 9 anni fa | 0

| accettato

Risolto


Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

oltre 9 anni fa

Risolto


Replace Nan!
Replace Nan in the given vector(v) with 9999.

oltre 9 anni fa

Risolto


Cell Operator *
Please implement operator * for cell: >> {2,3} * 2 ans = 1×4 cell array [2] [3] [2] [3] >> {2,3} * [2 3]...

oltre 9 anni fa

Risolto


Delete the column with all 0 !
Delete the column with all 0 data in a matrix(x). e.g. input x = 1 0 0 4 5 0 7 0 ...

oltre 9 anni fa

Risolto


Delete the column with all 0 in the TABLE
In the given table (T), delete the column with all 0 data. e.g. input Banana Apple Orange Mellon __...

oltre 9 anni fa

Risolto


Insert Special character in character cell array.
input={'a','b','c'} then ans={'a','*','b','*','c'}

oltre 9 anni fa

Risolto


Probability of red tulips
I hope to give you bulbs of tulip. But I do not know the color of those petals. I just know that the color is red, white or yell...

oltre 9 anni fa

Risolto


Rotate it!
Given a set of points, your aim is to rotate it by a given angle "theta" CCW (in 2d). The points are given in a matrix(x) of dim...

oltre 9 anni fa

Risolto


Shift elements of vector left
Shift elements of vector to the left. For ex. : Input_vec = [1 2 3 4 5] Output_vec = [2 3 4 5 1]

oltre 9 anni fa

Risolto


Replace Negative(-) by 0 and positive by 1
In a given Matrix Replace all element having *Negative sign with 0* and *Positive elements with 1* .

oltre 9 anni fa

Risposto
Need to store some results of a function in a matrix
If I understand your problem correctly, the values stored in _A_ when _a_=4 are being replaced by the new values generated by yo...

oltre 9 anni fa | 1

Risposto
Matlab comparison of two large matricies
A couple comments: 1. Did you mean to convert to the cell array in this manner? subA = num2cell(subA); If you want to...

oltre 9 anni fa | 0

Risolto


Implement a bubble sort technique and output the number of swaps required
A bubble sort technique compares adjacent items and swaps them if they are in the wrong order. This is done recursively until al...

oltre 9 anni fa

Risolto


Oh Zero Zero Zero!!!
Hello all, So you have to find the largest section of zeros in a vector and then find the length of those zeros and there start...

oltre 9 anni fa

Risolto


calculate PI without using pi function
There are many methods to get the pi(Ratio of circumference to diameter). You should get pi without using the pi function in M...

oltre 9 anni fa

Risolto


find a specific element from an matrix
Find the element from matrix which is in 2nd row and 3rd column.

oltre 9 anni fa

Risolto


Convert a vector of Integers into a matrix of binaries
Convert a vector of positive integers into a matrix containing their binary representation. Each column of the output contains t...

oltre 9 anni fa

Risolto


Determine if a row vector has NaN
Determine if a row vector x has NaN

oltre 9 anni fa

Risolto


Add one raw in given matrix as shown in example
*Add one raw in given matrix as shown in example* A=[1 0;0 1]; X=[3 5]; Answer must be:[1 0; 0 1;3 5]

oltre 9 anni fa

Risolto


JOIN STRINGS
There are two given strings 'STRING1' and 'STR ING2'.|monospaced|The output should be 'STRING1 STR ING2' or STr1='Sum';STr2='EQU...

oltre 9 anni fa

Risolto


Replace Nonzero Numbers with 1
Given the matrix x, return the matrix y with non zero elements replaced with 1. Example: Input x = [ 1 2 0 0 0 ...

oltre 9 anni fa

Risolto


Find the position of last minimum value in an integer array with numbers
If x = [2 6 4 9 -10 3 1 5 -10] then the output should be 9, because last minimum value (-10) lies at the 9th position.

oltre 9 anni fa

Risolto


Convert a structure into a string
Convert the contents of each fields into a string. Example with an input structure s with 2 fields : s.age = '33' s....

oltre 9 anni fa

Carica altro