**Statistics**

RANK**548**

of 242.954

REPUTATION**104**

CONTRIBUTIONS

**0** Questions

**44** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**18**

RANK**11.428** of 16.987

REPUTATION**26**

AVERAGE RATING**0.00**

CONTRIBUTIONS**1** File

DOWNLOADS **5**

ALL TIME DOWNLOADS**261**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

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...

casi 5 años ago | 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. ...

casi 5 años ago | 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...

casi 5 años ago | 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...

casi 5 años ago | 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>...

casi 5 años ago | 1

| accepted

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>

casi 5 años ago | 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...

casi 5 años ago | 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...

casi 5 años ago | 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/...

casi 5 años ago | 0

erode until 1 pixel remains

The function <http://mathworks.com/help/images/ref/bwmorph.html |bwmorph|> with the |'shrink'| option perhaps.

casi 5 años ago | 0

| accepted

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>

casi 5 años ago | 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...

casi 5 años ago | 1

| accepted

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...

casi 5 años ago | 0

| accepted

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...

casi 5 años ago | 0

| accepted

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....

casi 5 años ago | 2

| accepted

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...

casi 5 años ago | 1

| accepted

turn a table column into doubles

str2num('enter your string here'); Please note that this would only work for strings that contain numerical data

casi 5 años ago | 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...

casi 5 años ago | 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 = ...

casi 5 años ago | 0

Help aligning two vectors with one centred on zero.

xreal=Pitch*((1:numel(x1)) - ceil(numel(x1)/2))

casi 5 años ago | 1

How to plot a stored vector on one graph with the x axis 1:number

Try the following plot(1:numel(v),v);

casi 5 años ago | 1

| accepted

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...

casi 5 años ago | 3

| accepted

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...

casi 5 años ago | 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...

casi 5 años ago | 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...

casi 5 años ago | 0

Matlab jokes or puns

Q: What does your cat do when it sits on your laptop? A: It plays with strings.

casi 5 años ago | 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 ...

casi 5 años ago | 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...

casi 5 años ago | 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...

casi 5 años ago | 1