統計
All
Feeds
解決済み
All capital?
Are all the letters in the input string capital letters? Examples: 'MNOP' -> 1 'MN0P' -> 0
8年弱 前
解決済み
Back to basics 15 - classes
Covering some basic topics I haven't seen elsewhere on Cody. Return the class of the input variable.
8年弱 前
回答済み
How can I solve this error ... Error using * Inner matrix dimensions must agree. Error in Naivayes (line 74) ProbN = prob_table(A11,A1 - 1,1) *prob_table(A21,A2 - 1,1) *prob_table(A31, A3 - 1,1) *prob_table(A41,A4 - 1,1) *fy(1);
Please check the values of the variables A1, A2, A3 and A4. These should be scalar and greater than 1, otherwise they generat...
How can I solve this error ... Error using * Inner matrix dimensions must agree. Error in Naivayes (line 74) ProbN = prob_table(A11,A1 - 1,1) *prob_table(A21,A2 - 1,1) *prob_table(A31, A3 - 1,1) *prob_table(A41,A4 - 1,1) *fy(1);
Please check the values of the variables A1, A2, A3 and A4. These should be scalar and greater than 1, otherwise they generat...
8年弱 前 | 0
回答済み
Tracks are the same length but wont concatenate
From your data given above, one of them is a row and the other is a column. They should both read 1-by-566272 *OR* 566272-by-1. ...
Tracks are the same length but wont concatenate
From your data given above, one of them is a row and the other is a column. They should both read 1-by-566272 *OR* 566272-by-1. ...
8年弱 前 | 1
回答済み
Trouble running 5 separate data sets through one code and saving the answers for each data set.
The loop scheme you have here is not serving any purpose. I suggest creating a function out of the lines of code that you have I...
Trouble running 5 separate data sets through one code and saving the answers for each data set.
The loop scheme you have here is not serving any purpose. I suggest creating a function out of the lines of code that you have I...
8年弱 前 | 0
回答済み
I have two images of the same matrix size (512x512) but different pixel spacing. One image has a pixel spacing of 0.7 and the other 0.4. How do I get the two images to have the same pixel spacing and still maintain the matrix size of both images.
You could extract the image pixel values into new arrays. This would preserve the size of the images and ignore pixel spacing (o...
I have two images of the same matrix size (512x512) but different pixel spacing. One image has a pixel spacing of 0.7 and the other 0.4. How do I get the two images to have the same pixel spacing and still maintain the matrix size of both images.
You could extract the image pixel values into new arrays. This would preserve the size of the images and ignore pixel spacing (o...
8年弱 前 | 0
回答済み
How can I use wcodemat to re-scale an intensity/gray-scale image?
You could get a map of your original grayscale image X using the |<https://mathworks.com/help/matlab/ref/contrast.html contrast>...
How can I use wcodemat to re-scale an intensity/gray-scale image?
You could get a map of your original grayscale image X using the |<https://mathworks.com/help/matlab/ref/contrast.html contrast>...
8年弱 前 | 1
| 採用済み
回答済み
Hi I have a matrix that is 100x100 and i would like to know if its possible to change the font size of the matrix when it shows as output ?
You might find some useful information here: <https://mathworks.com/help/matlab/matlab_env/change-fonts.html>
Hi I have a matrix that is 100x100 and i would like to know if its possible to change the font size of the matrix when it shows as output ?
You might find some useful information here: <https://mathworks.com/help/matlab/matlab_env/change-fonts.html>
8年弱 前 | 0
回答済み
How to remove subplot grey space between images
The best (and possibly only) way to do that would be to create a new, larger image where you combine all your smaller subplots i...
How to remove subplot grey space between images
The best (and possibly only) way to do that would be to create a new, larger image where you combine all your smaller subplots i...
8年弱 前 | 1
回答済み
Replace elements between two matrices
Try the |<https://mathworks.com/help/matlab/ref/setxor.html setxor>| function. You may need to tweak the directionality of the i...
Replace elements between two matrices
Try the |<https://mathworks.com/help/matlab/ref/setxor.html setxor>| function. You may need to tweak the directionality of the i...
8年弱 前 | 0
解決済み
Reindex a vector
You are given two vectors of equal length. Vector N has numeric values (no Inf or NaN) while vector IDX has integers. Place th...
8年弱 前
解決済み
intersection of matrices
Given two matrices filled with ones and zeros, determine if they share a common row, column entry. These matrices are of identi...
8年弱 前
解決済み
Getting the indices from a matrice
Getting the indices from a matrice. Inspired by Problem 645. Getting the indices from a vector by the great Doug Hull. Given a...
8年弱 前
解決済み
We love vectorized solutions. Problem 1 : remove the row average.
Given a 2-d matrix, remove the row average from each row. Your solution MUST be vectorized. The solution will be tested for ac...
8年弱 前
解決済み
Create logical matrix with a specific row and column sums
Given two numbers *|n|* and *|s|*, build an |n-by-n| logical matrix (of only zeros and ones), such that both the row sums and th...
8年弱 前
解決済み
Is my wife really right?
For every input, output the string 'yes' once. Example: [yes1, yes2] = YesSheIs('Am I right?', 'Do you love me?') yes1 = '...
8年弱 前
解決済み
Back to basics 10 - Max Float
Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive floating-point number MATLAB can han...
8年弱 前
解決済み
Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...
8年弱 前
解決済み
Love triangles
Given a vector of lengths [a b c], determines whether a triangle with non-zero area (in two-dimensional Euclidean space, smarty!...
8年弱 前
解決済み
Replace Vector Elements
Replace all elements in a vector which are equal to or smaller than zero with 0.1. Example: A = [1 2 3 -1 0 2 -3 -80]; ...
8年弱 前
解決済み
Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...
8年弱 前
解決済み
Back to basics 23 - Triangular matrix
Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix, return a matrix with all elements above a...
8年弱 前
解決済み
Replace NaNs with the number that appears to its left in the row.
Replace NaNs with the number that appears to its left in the row. If there are more than one consecutive NaNs, they should all ...
8年弱 前
解決済み
Omit columns averages from a matrix
Omit columns averages from a matrix. For example: A = 16 2 3 13 5 11 10 8 9 7 ...
8年弱 前
解決済み
Insert zeros into vector
Insert zeros after each elements in the vector. Number of zeros is specified as the input parameter. For example: x = [1 ...
8年弱 前
解決済み
Remove the two elements next to NaN value
The aim is to *remove the two elements next to NaN values* inside a vector. For example: x = [6 10 5 8 9 NaN 23 9 7 3 21 ...
約8年 前
解決済み
Specific Element Count
Given a vector _v_ and a element _e_, return the number of occurrences of _e_ in _v_. Note: NaNs are equal and there may be n...
約8年 前
解決済み
Matrix indexing with two vectors of indices
Given a matrix M and two index vectors a and b, return a row vector x where x(i) = M(a(i),b(i)).
約8年 前