MATLAB
Image Convolution in Frequency Domain (MATLAB)
I\'m writing a c++ program for a class to do convolution in the frequency domain, and I noticed the final result had error along the corner. So I tried it out in MATLAB and got the exact same results.[详细]
2023-04-10 01:15 分类:问答Testing if rows of a matrix or data frame are sorted in R
What is an efficient way to test if rows in a matrix are sorted?[Update: see Aaron\'s Rcpp answer - straightforward & very fast.][详细]
2023-04-10 00:45 分类:问答Matlab RGB color representation ([255 255 255] and [1 1 1])
What\'s the difference between above two representa开发者_Python百科tion of white color? I\'m a bit confused, and how they are used?The two equivalent representations are[详细]
2023-04-09 23:34 分类:问答Matlab shrink image array based on another array
I have an array that is holding an image of size (560 x 296) which is the original image that I input into my program. Now I have another array of the same size (560 x 296) that is filled with 0s and[详细]
2023-04-09 22:34 分类:问答Color issue in MATLAB
I\'m writing a function file which is used to draw a line in an image. Now I\'m facing the color issue. If I set color=[255 255 255] or color=[128 128 128] in the command window, the lines that appear[详细]
2023-04-09 22:05 分类:问答Expression for summing all the entries of a logical matrices expressions in Matlab?
To sum all the elements in a 开发者_开发问答matrix you usually do A = sum ( B(:) ); which is nice and short. However assume that we have a logical expression like this[详细]
2023-04-09 21:16 分类:问答Indexing arrays in matlab from 0
For the math class I\'m taking, I have to write a program to compute the FFT of a function. We have been given the code in class. I\'m having problems entering the code in matlab because the index sta[详细]
2023-04-09 21:11 分类:问答How to get the handle of a method in an Object (class inst) within MATLAB
I\'m trying to grab a method handle from within an object in MATLAB, yet something in t开发者_运维问答he sort of str2func(\'obj.MethodName\') is not workingThe answer is to get a function handle as @P[详细]
2023-04-09 19:41 分类:问答Dividing selected elements of array on Matlab
I have the following array a = [ 1 10 3 4 68 2 34 8 10 ] And I need to divide each number (/2) if this number is higher than 9.[详细]
2023-04-09 19:18 分类:问答MATLAB Mex Socket Wrapper Library
Have anybody written a POSIX socket wrapping library for MATLAB using Mex? I basically want to open, write and r开发者_如何转开发ead. Both sync and asynchronous alternatives would be nice. My main ta[详细]
2023-04-09 18:48 分类:问答