# Debasish Samal

Active since 2019

Followers: 0   Following: 0

All

#### Feeds

View by

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 ...

5 years ago | 1

| accepted

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...

5 years ago | 1

| accepted

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...

5 years ago | 0

| accepted

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...

5 years ago | 0

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 ...

5 years ago | 0

| accepted

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...

5 years ago | 0

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...

5 years ago | 1

| accepted

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...

5 years ago | 1

| accepted

calling dir() with a file path that uses both English and Korean char.

5 years ago | 0