Community Profile

photo

Kunal Rathod


Last seen: 10 days ago
2 total contributions since 2020

Contact

Kunal Rathod's Badges

  • First Answer

View details...

Contributions in
View by

Question


Why the computational time during initialization to ones matrix is lower than zero matrix when you use preallocation in Matlab?
I created two sets of functions, prealloczeros.m and preallocones.m as I wanted to compare the computational time taken by Matl...

2 months ago | 1 answer | 1

1

answer

Answered
next prime number using While loops
%It took a while for me too. Here's the trick function [k] = next_prime(n) %Checking for the condition if the input is a scala...

2 months ago | 0