Feeds
已回答
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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 0
已回答
Apply a filter to an image
There are *many* ways available. The following is just a sample subset of functions to give you an idea: <https://mathworks.com/...
Apply a filter to an image
There are *many* ways available. The following is just a sample subset of functions to give you an idea: <https://mathworks.com/...
8 years 前 | 0
已回答
erode until 1 pixel remains
The function <http://mathworks.com/help/images/ref/bwmorph.html |bwmorph|> with the |'shrink'| option perhaps.
erode until 1 pixel remains
The function <http://mathworks.com/help/images/ref/bwmorph.html |bwmorph|> with the |'shrink'| option perhaps.
8 years 前 | 0
| 已接受
已回答
What folder does Matlab use to store the Command History (history.m)?
Please see the answer on the following page. <https://mathworks.com/matlabcentral/answers/97504#answer_10685>
What folder does Matlab use to store the Command History (history.m)?
Please see the answer on the following page. <https://mathworks.com/matlabcentral/answers/97504#answer_10685>
8 years 前 | 0
已回答
I keep getting an error message for my subplot syntax? Could anyone out there look over my script, and tell me whats wrong?
This is simply a reformatted version. Please try running this: x = 0:0.1:5; y = exp(-1.2*x).*sin(10*x+5); subplot(1...
I keep getting an error message for my subplot syntax? Could anyone out there look over my script, and tell me whats wrong?
This is simply a reformatted version. Please try running this: x = 0:0.1:5; y = exp(-1.2*x).*sin(10*x+5); subplot(1...
8 years 前 | 1
| 已接受
已回答
How can I write multiple sets of data from MATLAB to one sheet in excel?
You could simply call the same function a couple more times to write your required variables into the same sheet. I would als...
How can I write multiple sets of data from MATLAB to one sheet in excel?
You could simply call the same function a couple more times to write your required variables into the same sheet. I would als...
8 years 前 | 0
| 已接受
已回答
Can i make loop from this equation?
I don't see why you would need any loops here. Your if-else statements seem to be doing just fine. But, if your Sa and Sb v...
Can i make loop from this equation?
I don't see why you would need any loops here. Your if-else statements seem to be doing just fine. But, if your Sa and Sb v...
8 years 前 | 0
| 已接受
已回答
Editing of y-label in the step response
On the figure window, go to Edit --> Axes Properties. This will open up the property editor on the bottom of your figure window....
Editing of y-label in the step response
On the figure window, go to Edit --> Axes Properties. This will open up the property editor on the bottom of your figure window....
8 years 前 | 2
| 已接受
已回答
Does bwboundaries always returned ordered, clockwise, boundaries?
Hello David, Please look up " |help bwboundaries| " at the command line if you would like an explicit mention of this particular...
Does bwboundaries always returned ordered, clockwise, boundaries?
Hello David, Please look up " |help bwboundaries| " at the command line if you would like an explicit mention of this particular...
8 years 前 | 1
| 已接受
已回答
turn a table column into doubles
str2num('enter your string here'); Please note that this would only work for strings that contain numerical data
turn a table column into doubles
str2num('enter your string here'); Please note that this would only work for strings that contain numerical data
8 years 前 | 0
已回答
Creating a matrix that calculates inverse and determinants without using the det and inv commands
A *singular* matrix, by definition, is one whose determinant is zero. hence, it is *non-invertible*. In code, this would be repr...
Creating a matrix that calculates inverse and determinants without using the det and inv commands
A *singular* matrix, by definition, is one whose determinant is zero. hence, it is *non-invertible*. In code, this would be repr...
8 years 前 | 1
已回答
How to perform repeated calculations on a different bin
Put all the bin data into a cell array and use <http://mathworks.com/help/matlab/ref/cellfun.html |cellfun|> all_bins_raw = ...
How to perform repeated calculations on a different bin
Put all the bin data into a cell array and use <http://mathworks.com/help/matlab/ref/cellfun.html |cellfun|> all_bins_raw = ...
8 years 前 | 0
已回答
Help aligning two vectors with one centred on zero.
xreal=Pitch*((1:numel(x1)) - ceil(numel(x1)/2))
Help aligning two vectors with one centred on zero.
xreal=Pitch*((1:numel(x1)) - ceil(numel(x1)/2))
8 years 前 | 1
已回答
How to plot a stored vector on one graph with the x axis 1:number
Try the following plot(1:numel(v),v);
How to plot a stored vector on one graph with the x axis 1:number
Try the following plot(1:numel(v),v);
8 years 前 | 1
| 已接受
已回答
How to plot a triangular prism ?
Hello Marian, this is how your prism should look <</matlabcentral/answers/uploaded_files/61841/untitled.png>> And now fo...
How to plot a triangular prism ?
Hello Marian, this is how your prism should look <</matlabcentral/answers/uploaded_files/61841/untitled.png>> And now fo...
8 years 前 | 3
| 已接受
已回答
While loop inside an if loop
_"Matlab stops by display pick_year."_ When this line is displayed, you have to enter the year on your command window. Your p...
While loop inside an if loop
_"Matlab stops by display pick_year."_ When this line is displayed, you have to enter the year on your command window. Your p...
8 years 前 | 0
已回答
automatic variable creation?
It would be more efficient to simply store all these indices inside *one* variable (or array/ cell array/ structure, as the case...
automatic variable creation?
It would be more efficient to simply store all these indices inside *one* variable (or array/ cell array/ structure, as the case...
8 years 前 | 0
已回答
how to solve this error ? Error using horzcat Dimensions of matrices being concatenated are not consistent.
Hello Khoirunnisya, could you please run the following code *exactly* as it is here and paste the output from your command windo...
how to solve this error ? Error using horzcat Dimensions of matrices being concatenated are not consistent.
Hello Khoirunnisya, could you please run the following code *exactly* as it is here and paste the output from your command windo...
8 years 前 | 0
已回答
Matlab jokes or puns
Q: What does your cat do when it sits on your laptop? A: It plays with strings.
Matlab jokes or puns
Q: What does your cat do when it sits on your laptop? A: It plays with strings.
8 years 前 | 1
已回答
Creating matrix nested for loop
If you already have all these data available (in separate vectors, I assume) then you do not need any loops. For example, if ...
Creating matrix nested for loop
If you already have all these data available (in separate vectors, I assume) then you do not need any loops. For example, if ...
8 years 前 | 0
已回答
Matlab strikes again with missing functionality for bode plots
Try out the colorful buttons on the top toolbar of your figure window. Click on the button shown by the big red box. This wi...
Matlab strikes again with missing functionality for bode plots
Try out the colorful buttons on the top toolbar of your figure window. Click on the button shown by the big red box. This wi...
8 years 前 | 0
已回答
How long have you been using matlab? tell us your story
I started using MATLAB in 2001 when I was in my 10th grade (It was version 6.0 then!). Initially, it was just to gain some extra...
How long have you been using matlab? tell us your story
I started using MATLAB in 2001 when I was in my 10th grade (It was version 6.0 then!). Initially, it was just to gain some extra...
8 years 前 | 1