photo

Shivam Prasad

MathWorks

Last seen: 2 years ago Active since 2019

Followers: 0   Following: 0

I work at MathWorks India Pvt. Ltd.

DISCLAIMER: Any advice or opinions posted here are my own, and in no way reflect that of MathWorks.

Statistics

  • Knowledgeable Level 2
  • First Answer

View badges

Feeds

View by

Answered
Tab key reading problem
Hi Sergio, Check if this works for you. s=importdata('inp.txt') filePh = fopen('outp.txt','w'); fprintf(filePh,'%s\n',...

5 years ago | 1

| accepted

Answered
finding the paths with successor values
Hi Sampath, This can be solved by performing a depth first search on the array. Firstly represent the activities and succ...

5 years ago | 0

Answered
reading a txt with periodic strings
Hi Anna, I understand that the 8000 values contains the values as numeric types. You can read all the values as strings f...

5 years ago | 0

Answered
how to sum all pixel within a specific distance from each pixel?
Hi Waseem, Check if this works. I have made some changes to your code. array=[1.0,5.0,25.0,27.0,35.0,38.0,41.0,50.0]; matc...

5 years ago | 0

Answered
Is there a way to compile a matlab script that calls a mex function to C++
Hi Marc, Check if this works for you:- https://www.mathworks.com/matlabcentral/answers/48620-generating-c-c-code-from-m-fun...

5 years ago | 0

Answered
Integers without repeating consecutively
Hi Jose, Check if the following code works for you:- function [repPos, pinCodeFix] = pinCodeCheck(pinCode) repPos = []; ...

5 years ago | 11

| accepted

Answered
sliding window in image
Hi Athulya, Check if this works for you:- im=rgb2gray(imread('SM.jpg')); %some image fun = @(block_struct) graycomat...

5 years ago | 0

| accepted

Answered
How to get source code and object code in MATLAB. Have tried a lot unable to generate the object and source code...
Hi Avinav, I understand that by source code you mean the .m file which you write in your MATLAB editor. It is created by yo...

5 years ago | 0

Answered
how to define a vector of functions using a for cycle?
Hi Luca, Check if this works for you: syms t x y n=5; % define a n F=matlabFunction(subs(x+3*i*y+t^2,i,1:n))

5 years ago | 0

| accepted

Answered
I need help on part c d and f. Question is in comments
Hi Hunter, Refer to this link to refine the question.

5 years ago | 0

Answered
upgrade matlab new licens needed?
Hi Ludvig, Please refer to this article and update the License file.

5 years ago | 0

Answered
How to fix Error 337
Hi Dylan, Please refer to the following answer provinding details about troubleshooting error 337:- https://www.mathworks.c...

5 years ago | 0

Answered
how to build logical relationships between elements of two vectors?
Hi BOWEN, Code for modifying the values of B according to values in A:- A = [1 0 1 0;1 1 0 0;1 1 1 1;1 1 0 1;0 1 1 1]; % d...

5 years ago | 0

Answered
Why it is showing error?
Hi Kartikey, The function imread assumes the argument to be be a valid path (relative/absolute) pointing to a valid image f...

5 years ago | 0

| accepted