Community Profile

photo

Shivam Prasad


Last seen: 1 day ago

MathWorks

15 total contributions since 2019

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.

Shivam Prasad's Badges

  • Knowledgeable Level 2
  • First Answer

View details...

Contributions in
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',...

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

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

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

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

11 months ago | 0

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

11 months ago | 2

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

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

12 months 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))

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

12 months ago | 0

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

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

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

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

12 months ago | 0

| accepted