Community Profile

# Kanupriya Singh

##### Last seen: 28 días ago
10 total contributions since 2020

#### Kanupriya Singh's Badges

View details...

Contributions in
View by

How to count number of days within datetime array
Since your previous attempts are returning you empty data for days that are not in your datetime array, you could calculate the ...

alrededor de 1 mes ago | 0

| accepted

How would I convert this .mat file to a .tif file?
Refer to this resolved MATLAB Answer: https://www.mathworks.com/matlabcentral/answers/312269-how-to-convert-mat-file-to-tif-fi...

alrededor de 1 mes ago | 0

how to import from a csv with a different file name?
You could store all the different filenames in an array and then use a for loop to iterate over this array, choosing one filenam...

alrededor de 1 mes ago | 0

DCT in matlab using radians or degree
Please go through the documentation for DCT to understand in depth how it works- https://www.mathworks.com/help/images/discrete...

alrededor de 1 mes ago | 0

How to find location of elements in an array
Try this- a = [2 1 3 4 6 8] b = [2 6 8] idx = []; for i = 1:length(b) idx = [idx, find(b(i) == a)]; end

alrededor de 1 mes ago | 0

convert an array of alphabet letters into numbers ; A =a1, B =2, C = 3 etc.
I think using this code would help you out: word = 'WELCOME' double(word) - 64

alrededor de 1 mes ago | 1

Sqlite database relative path
If your MATLAB file is in the same directory as the SQLite database file, then you need to only specify the name of the database...

alrededor de 1 mes ago | 0

How to write a function?
The syntax for declaring a function in MATLAB is: function [y1,...,yN] = myfun(x1,...,xM) In your case, the function defintion ...

alrededor de 1 mes ago | 0

| accepted