Community Profile

photo

Debasish Samal


Active since 2019

Statistics

All
  • Knowledgeable Level 2
  • First Answer
  • Community Group Solver
  • Introduction to MATLAB Master
  • Solver

View badges

Content Feed

View by

Answered
How to find position of array
You can use regular expressions to do this. x = '11111100001111'; expr = '1*'; [sInd,eInd] = regexp(x, expr) This gives the ...

3 years ago | 1

| accepted

Answered
Given a matrix A, create the matrix B whose elements are the neighbor sumr for A
There are multiple indexing errors in your code Jose. Here is the rectified version. A = [1 2 3 4; 5 6 7 8; 9 10 11 12; 13 14 1...

3 years ago | 1

| accepted

Answered
Regular expressions: number that does not begin or end with a letter
Here is a solution to your answer. This solution separates all the decimal numbers/integers from the non integers/decimals. str...

3 years ago | 0

| accepted

Answered
variant sink declaring variables
One thing you can try here is using 2 switches. Set the threshold value in both switches and supply the inputs accordingly. For...

3 years ago | 0

Answered
Euler's Method
There is a parentheses mismatch in your code for the euler's method. Replace that line with: y(i+1) = y(i) + h *(sin(x) * ( 1 ...

3 years ago | 0

| accepted

Answered
Import data with column separated with a comma, and comma as decimal place symbol
One thing that you can do here is import the data and save it in a variable say 'var'. Then replace the commas by a decimal poin...

3 years ago | 0

Answered
Count the number of space character from a text file which has multiple lines
What you are actually doing in the while loop is , assigning the number of spaces in each line to the variable space. It will al...

3 years ago | 1

| accepted

Answered
Mongo and GridFS Java Driver with MATLAB
The error occurs because there is no such object "gridFSBucket". You need to create an object "gridFSBucket" of type GridFSBuck...

3 years ago | 1

| accepted

Answered
calling dir() with a file path that uses both English and Korean char.
Follow the below link to the answer. It is similar to your issue. https://www.mathworks.com/matlabcentral/answers/71626-matlab-...

3 years ago | 0

Answered
How to delete elements on specific indices?
You can achieve this on matlab by using the following code. outliers = [1,3,7]; elm = [1, 2, 3, 4, 5, 6, 7, 8, 9]; elm(outlie...

3 years ago | 3

| accepted

Answered
how to solve index exceeds dimensions
In the line a(position) = xor(b(position),code(m)); The variable 'position' should not be used for indexing into b as it will e...

3 years ago | 0