Community Profile

photo

PANKAJ SHARMA


Last seen: 約1ヶ月 前 2020 以来アクティブ

Matlab ,Simulink developer and Process Automation

Statistics

  • CUP Challenge Master
  • Introduction to MATLAB Master
  • Community Group Solver
  • Solver

バッジを表示

Content Feed

表示方法

解決済み


Rotate a Matrix by 90 degrees
Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...

約1ヶ月 前

解決済み


Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

約1ヶ月 前

解決済み


Convert yards to feet
The goal of this script is to convert a value given in yards to feet.

約1ヶ月 前

解決済み


calculate the length of matrix
input 1 array, calculate the length

約1ヶ月 前

解決済み


Find the max element of the array
Find the max element of the array

約1ヶ月 前

解決済み


Project Euler: Problem 2, Sum of even Fibonacci
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...

約1ヶ月 前

解決済み


Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

約1ヶ月 前

解決済み


Natural numbers in string form
Create a cell array of strings containing the first n natural numbers. _Slightly_ harder than it seems like it should be. Ex...

約1ヶ月 前

解決済み


Fix the last element of a cell array
Note: this is lifted directly from <http://www.mathworks.com/matlabcentral/answers/82825-puzzler-for-a-monday Puzzler for a Mond...

約1ヶ月 前

解決済み


String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values
<http://www.mathworks.com/help/matlab/characters-and-strings.html String array> and cell array are two types of containers for s...

約1ヶ月 前

解決済み


Cell Counting: How Many Draws?
You are given a cell array containing information about a number of soccer games. Each cell contains one of the following: * ...

約1ヶ月 前

解決済み


Remove element(s) from cell array
You can easily remove an element (or a column in any dimension) from a normal matrix, but assigning that value (or range) empty....

約1ヶ月 前

解決済み


Convert a Cell Array into an Array
Given a square cell array: x = {'01', '56'; '234', '789'}; return a single character array: y = '0123456789'

約1ヶ月 前

解決済み


Split a string into chunks of specified length
Given a string and a vector of integers, break the string into chunks whose lengths are given by the elements of the vector. Ex...

約1ヶ月 前

解決済み


Convert a numerical matrix into a cell array of strings
Given a numerical matrix, output a *cell array of string*. For example: if input = 1:3 output is {'1','2','3'} whic...

約1ヶ月 前

解決済み


Create a cell array out of a struct
Create a cell array out of a (single) struct with the fieldname in the first column and the value in the second column: in: ...

約1ヶ月 前

解決済み


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

約1ヶ月 前

解決済み


There are 10 types of people in the world
Those who know binary, and those who don't. The number 2015 is a palindrome in binary (11111011111 to be exact) Given a year...

約1ヶ月 前

解決済み


Given a matrix, swap the 2nd & 3rd columns
If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4]; then the result is ans = 1 3 2 4 1 3 2...

約2ヶ月 前

解決済み


Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

約2ヶ月 前

解決済み


Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

約2ヶ月 前

解決済み


Negative matrix
Change the sign of all elements in given matrix.

約2ヶ月 前

解決済み


y equals x divided by 2
function y = x/2

約2ヶ月 前

解決済み


factorial of a number x
Factorial of a number x

約2ヶ月 前

解決済み


Flipping
Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...

約2ヶ月 前

解決済み


Building matrices
If you have matrix A, create matrix B using matrix A as an "element" A = [1 2 3 4; 5 6 7 8...

約2ヶ月 前

解決済み


Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

約2ヶ月 前

解決済み


Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

約2ヶ月 前

解決済み


Determine the square root
Determine the square root of the value the user has entered, n.

約2ヶ月 前

解決済み


Remove the positive integers.
Given array,x, remove all the positive numbers and display ouput as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

約2ヶ月 前

もっと読み込む