Community Profile

photo

Chaya N


Active since 2016

Statistics

All
  • Quiz Master
  • First Submission
  • Knowledgeable Level 2
  • First Answer
  • Speed Demon
  • CUP Challenge Master
  • Creator
  • Promoter
  • Commenter
  • Solver

View badges

Content Feed

View by

Answered
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

Answered
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

Answered
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

Answered
Create largest N digit number
Try this (10^N) - 1

casi 5 años ago | 0

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
Help aligning two vectors with one centred on zero.
xreal=Pitch*((1:numel(x1)) - ceil(numel(x1)/2))

casi 5 años ago | 1

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Load more