Community Profile

photo

SHUBHAM GUPTA


188 2017 年以降の合計貢献数

SHUBHAM GUPTA's バッジ

  • Knowledgeable Level 2
  • CUP Challenge Master
  • First Answer
  • Thankful Level 1
  • Magic Numbers II Master
  • Sequences And Series I Master
  • Cody5 Easy Master
  • Solver

詳細を表示...

貢献した分野
表示方法

回答済み
Comparing arrays and calculating
Try this : for i = 1:length(A2) [Alh,im] = sort(A2); w1 = im(find(Alh>A1,1)); % The index for which the v...

21日 前 | 0

| 採用済み

解決済み


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

約1ヶ月 前

解決済み


Counting down
Create a vector that counts from 450 to 200 in increments of 10.

約1ヶ月 前

解決済み


04 - Scalar Equations 1
Define the variable a: <<http://samle.dk/STTBDP/Assignment1_4-a.png>> Use this to calculate x: <<http://samle.dk/STTBD...

約1ヶ月 前

解決済み


Matlab Basics - y as a function of x
Write a function to calculate y as a function of x, such that y = 6x^2 + 5x - 2

約1ヶ月 前

解決済み


Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

約1ヶ月 前

解決済み


find radius of cone
if Slant height of Cone(I)& hight of Cone(H) given then find radius of the Cone(R) for example I=5,h=4 then the ans R=3;

約1ヶ月 前

解決済み


Returning a "greater than" vector
Given a vector, v, return a new vector , vNew, containing only values > n. For example: v=[1 2 3 4 5 6] n=3 vNew =...

約1ヶ月 前

解決済み


Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

約1ヶ月 前

解決済み


06 - Matrix Equations 3
Define the matrices _aMat_, _bMat_, and _cMat_: <<http://samle.dk/STTBDP/Assignment1_3a.png>> ( _aMat_ = 9x9 matrix full o...

約1ヶ月 前

解決済み


Permute diagonal and antidiagonal
Permute diagonal and antidiagonal For example [1 2 3;4 5 6;7 8 9] -> [3 2 1;4 5 6;9 8 7] WITHOUT diag function (and variable n...

約1ヶ月 前

解決済み


N-Cards Problem
You have a deck of _N_ cards numbered in order from 1 to _N_. You discard the top card (card 1) and place the next card (card 2)...

約1ヶ月 前

解決済み


Sophie Germain prime
In number theory, a prime number p is a *Sophie Germain prime* if 2p + 1 is also prime. For example, 23 is a Sophie Germain prim...

約1ヶ月 前

解決済み


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

約1ヶ月 前

質問


Replace matched values with a cell array keeping unmatched values unchanged
I have a string let's say A = '[0, 40, 50, 60, 80, 100, 140, 160, 200, 300]'; and another char array,...

2ヶ月 前 | 1 件の回答 | 0

1

回答

回答済み
How to fix the values of different histograms 2D to have the same color reference?
One way to do this is to use "colormapeditor". Type the following in command window : colormapeditor In the dialog box, you ca...

5ヶ月 前 | 0

回答済み
How to find NaN value then delete whole row using for loop
Instead of finding 0 column wise, you can find NaN using 'isnan' function. Try this : rind=find(isnan(:,col)); everything(rind...

5ヶ月 前 | 1

回答済み
Understanding indexing and the colon operator
When you use 'end' for indexing, it means that you want to use 'last' index of the array. So, for e.g. if A is a 3x4 matrix and ...

5ヶ月 前 | 0

回答済み
How to prevent .xlsread to turn string data to NaN value
MATLAB doesn't give the option to store 'string' and 'double' in an double array. You can read the excel file and store it in a ...

5ヶ月 前 | 0

| 採用済み

回答済み
How to find index in a single array?
Try this : A=[3, 4, 6, 9, 12, 34, 56, 99, 105, 190]'; B=[4, 12, 34, 56]' ; D=[1:200;1:200;1:200;1:200]'; [val,ind]=intersect...

5ヶ月 前 | 1

回答済み
FOR loop taking every row from a matrix
Let's call input [3x159] matrix be Xin, and the final output [3x159] matrix be Xout. Here's is the code I would try : Xout = ze...

5ヶ月 前 | 0

| 採用済み

回答済み
Cut Off subplots in figure window
Try this: x = rand(10,10); y = x; z = x; azleft = 0; azright = 0; elleft = 90; elrright = 90; topologie = figure; link...

5ヶ月 前 | 0

| 採用済み

回答済み
Write a scilab code to fit a straight line for the following data.
Use 'polyfit' to fit data to required polynomial degree. take a look : help polyfit I hope this helps.

5ヶ月 前 | 0

回答済み
legend with specific colors
Right now you are plotting one dataset of 'Lon' and 'Lat' at a time and this will give you a plot with number of datasets equal ...

5ヶ月 前 | 1

| 採用済み

解決済み


Triangle sequence
A sequence of triangles is constructed in the following way: 1) the first triangle is Pythagoras' 3-4-5 triangle 2) the s...

5ヶ月 前

解決済み


Is this triangle right-angled?
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

5ヶ月 前

解決済み


Find a Pythagorean triple
Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

5ヶ月 前

解決済み


Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

5ヶ月 前

解決済み


Area of an Isoceles Triangle
An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<http://upload...

5ヶ月 前

解決済み


Dimensions of a rectangle
The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...

5ヶ月 前

Load more