Community Profile

photo

Durganshu


Last seen: 20일 전 2020년부터 활동

Programming Languages:
Python, C++, C, MATLAB, Arduino
Spoken Languages:
English, Hindi, German
Pronouns:
He/him

통계

All
  • Knowledgeable Level 3
  • 3 Month Streak
  • Knowledgeable Level 2
  • First Answer
  • Thankful Level 1
  • Promoter
  • Solver

배지 보기

Content Feed

보기 기준

답변 있음
Can we find the original code for MATLAB's inbuild apps?
As far as I know, MATLAB only provides extensive documentation of the in-built functions, libraries and apps. All the source cod...

2년 초과 전 | 0

답변 있음
how to plot matrix
Let your 2304x1024 matrix be data. I'm assuming that you have to obtain these images successively in a single plot. If that is n...

3년 초과 전 | 0

문제를 풀었습니다


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

3년 초과 전

문제를 풀었습니다


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<https://i.imgu...

3년 초과 전

문제를 풀었습니다


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

3년 초과 전

문제를 풀었습니다


Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

3년 초과 전

문제를 풀었습니다


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

3년 초과 전

답변 있음
about 'load' imperative sentence
load command imports files and data in the MATLAB workspace. As far as .dat file is concerned, a .dat file may contain any kind ...

3년 초과 전 | 0

| 수락됨

문제를 풀었습니다


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

3년 초과 전

문제를 풀었습니다


The last non-zero digit of a factorial
For given positive integer n, what is the last non-zero digit of n!? Example: factorial(11) = 39916800 Last non-zero d...

3년 초과 전

답변 있음
Kmeans clustering of multidimensional data
Let's assume that your data is in DATA matrix and you have imported all the row and columns in a local variable "data". Try this...

3년 초과 전 | 1

| 수락됨

답변 있음
How do i get a direction field plot?
Try this: [x,y]=meshgrid(a:k:b, c:j:d) meshgrid creates a set of points (x, y), where x lies between a and b, incremented by k...

3년 초과 전 | 1

답변 있음
Code running in one tab, but not another
In the line no. 59: B = log(Data(2:23,1)./k2); You are accessing Data values in the rows 2:23, while Data is just an 8x1 doubl...

3년 초과 전 | 0

| 수락됨

답변 있음
Why should I use the zeros function?
Zeros(m,n) will create a matrix of dimensions m x n with all the elements as 0. This matrix along with the ones(m,n) is often us...

3년 초과 전 | 1

답변 있음
Help to speed up the code
Well, the code inside the loops can be edited and vectorized to obtain faster results. I would suggest you go through this docum...

3년 초과 전 | 0

| 수락됨

답변 있음
how can i calculate a complex polygon with coordinates in matlab ?
You can use polyarea for accomplishing your task. The documentation is here: https://in.mathworks.com/help/matlab/ref/polyarea....

3년 초과 전 | 0

답변 있음
How can I plot my data from my for loop?
I'm writing this answer on a mobile phone and thus, I havn't checked this code, but it should work: clc clear all v0=50:1:100...

3년 초과 전 | 0

답변 있음
How do I make a logamarithic curved line of best fit?
You can manually code the problem to store more intermediate values through interpolation in order to make the curve more smooth...

3년 초과 전 | 0

문제를 풀었습니다


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

3년 초과 전

문제를 풀었습니다


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

3년 초과 전

답변 있음
Add a legend in a plot with multiples lines
Don't use legend multiple times. You can use this command after plotting all the plots. legend('20Hz', '40Hz', '60Hz', '80Hz...

3년 초과 전 | 1

답변 있음
how to visualization data ?
You can use plot or scatter for 2D comparison.If you want a 3D comparison, you can use surf for that. MATLAB has a lot of visual...

3년 초과 전 | 0

| 수락됨

답변 있음
how to plot series of y-axis that only on single point of x-axis?
ax.XTick will only set the ticks values along the x-axis. What is the actual range of x? As far as I can assume the values of x...

3년 초과 전 | 0

| 수락됨

답변 있음
Different result between Matlab and mobile calculator. (Plz helpTT)
Clearly, you have misplaced any bracket or operator while solving the problem in the calculator. Look for them. I t could even...

3년 초과 전 | 0

| 수락됨

답변 있음
Converting Frequency domain to time domain
Hi Katari: Proceed in the following way: Import the data from csv file using 'Import Data' tool or load or importdata function...

3년 초과 전 | 0

문제를 풀었습니다


convert matrix to single column
given any matrix, convert it to single column

3년 초과 전

문제를 풀었습니다


Pattern Sum
Write a function which receives two single digit positive integers, (k and m) as parameters and calculates the total sum as: k...

3년 초과 전

문제를 풀었습니다


Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

3년 초과 전

문제를 풀었습니다


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

3년 초과 전

문제를 풀었습니다


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

3년 초과 전

더 보기