Answered
How to draw rectangle inside plot figure?
Rectangle or triangle? Title and image show a rectangle so going with that. You could use the plot command and supply it with t...

4 years ago | 0

| accepted

Answered
Huffman Dictionary, error with index exceed when i give specific probabilities.
The error is occuring the 27th time the while loop runs. prob only has a single value at this point, so sorted_p(2) does not exi...

4 years ago | 1

Answered
Error on Matlab grading system - Variable y has an incorrect value.
I took a new look and decided to back out your equations to see what is happening. My best guess is that you are inconsistent in...

4 years ago | 0

| accepted

Answered
Why the graph is not look like logistic graph?
The most likely reasons are 1) you have not gone out far enough in x or 2) you have not written a logistic expression. Note tha...

4 years ago | 0

| accepted

Answered
How to extract a data from a table using a string stored in a variable
See the Access Data in Tables page. a = (1:5)'; A = table(a) varname = "a"; A.(varname)

4 years ago | 0

| accepted

Answered
Error of the following code : "Array indices must be positive integers or logical values."
Not enough info to say for sure, but I suspect at some point, ind contains values that are not positive integers or logical valu...

4 years ago | 0

Answered
'histcounts2(y,x,Xedges,Yedges)' rather than 'histcounts2(x,y,Xedges,Yedges)' gives me the correct result, why?
Because the output of histcounts2 is an array, where rows correspond to X, and columns correspond to Y. When you use surf to dis...

4 years ago | 2

| accepted

Answered
How to write time stamp to a specific cell in csv file
I believe that is not an option with a csv file. They are text files, so don't have cells or ranges. It may be possible with a s...

4 years ago | 0

| accepted

Answered
Warning: Unable to play audio because no audio outputs were found.
Not sure what was happening over the weekend, but when I checked again today, it worked.

4 years ago | 0

Answered
How do I set the 'RelTol','AbsTol'?
That is how you set the tolerances. You do need to include opts in your call to ode15s. [t,y] = ode15s(odefun,tspan,y0,options)...

4 years ago | 0

Answered
How can I merge similar rows in a matrix based on the first three columns' value.
Use groupsummary. Group by the first 3 columns, and use 'mean' to determine the value of the fourth. I find it easier to use on ...

4 years ago | 1

| accepted

Answered
One of the constant input variable need to be changed based on previous step's output in ODE, Can anyone kindly help?
I don't think your approach to solving for Thwdout and Tcwcout are doing what you want. You run ode45 a second time as a way of ...

4 years ago | 0

| accepted

Answered
How to make different character for each legend in my code?
Markers in your legend come from the linespec used when plotting your line. Plot each line with a different marker style. MATLAB...

4 years ago | 0

| accepted

Answered
How to take elements from a multidimensional array along the page axis?
By a single page do you mean all rows, all columns of one index in the 3rd dimension (see here)? In MALAB you would use the colo...

4 years ago | 0

| accepted

Answered
How to reshape matrix according to the given matrix?
I would use sort and reshape % Original data matrix_value = [3;5;2;1;2;4;5;1;4;3]; % sort the data [tmp,I] = sort(matrix_val...

4 years ago | 1

| accepted

Answered
solving ordinary differential equations
I think the reason for the error is that you have defined dy as a sym variable rather than a symfun, so it is interpretting the ...

4 years ago | 1

| accepted

Answered
how to take just 10% of my whole data and then train it?
I suggest looking into cvpartition.

4 years ago | 0

| accepted

Answered
for-loop prints for last iteration only and stores this last value in all cells of the matrix
Perhaps just a copy-paste error as it doesn't fix the problem, but you are missing an ellipsis at the end of the 2nd line of you...

4 years ago | 1

Answered
If I load 2 different music , after loading both , the UIAxes becomes the same, how do i fix this?
Because you are using the same variable name to capture the imported track in both browse1 and browse2 functions, namely app.y. ...

4 years ago | 0

| accepted

Answered
How can I translate a Live Script from German to English
There is no way in MATLAB to do this. My suggestios is to export the live script as a Microsoft Word document and then use your ...

4 years ago | 0

Answered
while training a Neural Network on MATLAB Online I got a warning Graphics timeout occurred
Report the issue by contacting support.

4 years ago | 0

| accepted

Answered
join .m files together
I think what you want is best answered by learning how to use the debugging tools in MATLAB. See the Debug MATLAB Code Files pag...

4 years ago | 0

| accepted

Answered
Plotting diurnal variation of temperature and pressure
Interesting data. It makes it a litte more challenging, but not impossible. First, I would look into using a datastore to load ...

4 years ago | 0

| accepted

Answered
How do i mix two audio signals in GUI and Update the UI?
See this post on how to mix audio signals: https://www.mathworks.com/matlabcentral/answers/170488-how-to-mix-two-audio-signals ...

4 years ago | 0

Answered
Why the matlab editor (Code Analyser) is not warning about changing size by a variable within a loop
For the same reason you get no warning about B growing inside a loop - MATLAB doesn't know what the index will be until the code...

4 years ago | 1

| accepted

Answered
How to get particular data from column of table in MATLAB
See the "Access Data in Tables" page. There are numerous ways depending on if you want to return an array or a table. For an ar...

4 years ago | 0

Answered
How do I chage the format of an input data
Save the birthdates as datetimes. See this page for more. You can then set the display format so that it displays how you'd like...

4 years ago | 0

Answered
I want to send an audio signal from MATLAB to Arduino
I have done this previously using the playTone function. Admittedly, this was for a single frequency tone and not a signal. You...

4 years ago | 0

Load more