Answered
How to find optimum data using PCA?
I feel you have a misunderstanding of what PCA does. It is useful for identifying the variables that can best be used to describ...

6 years ago | 1

| accepted

Answered
.mlapp file conversion for previous Matlab version compatibility
The best people to ask this question to is technical support.

6 years ago | 0

| accepted

Answered
Why is line does not showing up on the plot?
Because fd contains a single value. This defines a point, not a line. Therefore, your code plots a single point at each t value,...

6 years ago | 0

Answered
consulting 3D graph
I think the natural choice here is a spectrogram. Samples go along one axis, frequency along the other, and color is used to con...

6 years ago | 0

| accepted

Answered
How can I make a cdf plot?
You've shared the wrong code. The error is in your cdfplot function. There appears to be a datatype error as well. Perhaps beca...

6 years ago | 0

Answered
How do i reshape this matrix?
I'll do it with a numeric matrix. I've replaced a,b and c with a leading 1,2 and 3. X=[111 211 311 112 212 312 113 213 313 ...

6 years ago | 0

| accepted

Answered
How to use boxchart()?
I think the error is because you are using the syntax boxchart(xgroupdata,ydata), but your inputs are reversed. You put the grou...

6 years ago | 0

| accepted

Answered
Stroring data from text file into cell array
I would suggest using readtable. It makes your data much more accessible. If there is a header row, it will use those names as t...

6 years ago | 0

| accepted

Answered
How to create a row from x(1) to x(n)?
I suggest going through MATLAB Onramp. Chps 4 and 5 seems to be relevant to what you are asking. You might also just be needing...

6 years ago | 0

| accepted

Answered
Interpolating data from a table
Works here. Perhaps try clearing your workspace and then rerunning your code. AOA = (-180:1:-167)'; Cl = sort(rand(size(AOA))-...

6 years ago | 1

Answered
Custom curve fitting with constraint on parameters based on a value of estimated dependent variable (y)
This is what fmincon does. Have you tried using that?

6 years ago | 0

| accepted

Answered
How do I plot a date along the x-axis?
I would suggest taking table 1 and transposing it so that your countries are your column headers, and dates are all in a column....

6 years ago | 0

| accepted

Answered
How would I calculate the change in columns of one table and display it in another?
You won't be able to do this with tables. Using Accessing Data in Tables, extract the data, take the diff along dimension 2, the...

6 years ago | 0

| accepted

Answered
Vector length error in code
What line is causing your trouble? I just ran the code you shared and did not get any errors. Best to copy/paste the entire err...

6 years ago | 0

| accepted

Answered
text string from image matrix
This is called optical character recognition, or OCR. MATLAB has functions for this (see here). h = [0 1 0 0 0 1 0 0 1 0 ...

6 years ago | 1

| accepted

Answered
resize and define the position of the colorbar
Your position argument is relative to the entire figure, not the plot. Adjust it to be what you want it to be. Also, including ...

6 years ago | 0

| accepted

Answered
How can I get the names of checkboxes that were made with GUIDE
Use the object browser?

6 years ago | 0

Answered
Problems with line plots
You create that line with your plot3 command. If it should be doing what is shown in your other images, you may need to check yo...

6 years ago | 0

Answered
Plot in AppDesigner with durations
There is no difference in app designer between plotting numbers and plotting durations. You just plot it. The one thing to make ...

6 years ago | 0

Answered
How do you handle homework on Matlab-based courses? Is there a "class folder" software?
It would appear the workflow you describe is best suited to MATLAB Drive. Students could share a folder with you. You can access...

6 years ago | 0

Answered
plot multiple histograms with different data in same range
Taking a stab at this anyway. You cannot group data in histograms. For that, you'll need to use a bar plot. Use histcounts to ge...

6 years ago | 0

| accepted

Answered
error in for reading the data
I would check that your runDir is valid, and that it is the same as your current folder. The logic of your condition appears to...

6 years ago | 0

Answered
How can I load data in mobile ?
Store it in MATLAB Drive. You can learn more about MATLAB Drive here.

6 years ago | 0

Answered
How can compare models using ROC curve?
Perhaps this video on Evaluating Classification Models in MATLAB may be helpful. Using ROC curves comes towards the end.

6 years ago | 0

Answered
Unrecognized Variable despite being defined
The problem is you are using LL to define the values of LL. The first time through, LL has not yet been defined. Incidentally, y...

6 years ago | 0

| accepted

Answered
Is there a matrix which can be alphanumeric?
A matrix cannot contain mixed data types. It's possible to create a string array that does what you want, but everything will ha...

6 years ago | 0

| accepted

Answered
Combine 2 surface 3D with 2 axes z
I'd suggest this post. It contains details about adding a second Z axis and label. As for getting your two plots to appear, thi...

6 years ago | 0

Answered
Which Products should I select?
The good thing is you don't have to decide right now. You can use the Add Ons Explorer to add additional toolboxes as the need a...

6 years ago | 12

Answered
How to read a text file into an array
See the Import Text Files documentation page.

6 years ago | 0

| accepted

Answered
Volume visualization using Volshow() in appdesigner UIAxes, is it possible?
The documentation states that 'parent' should be a figure or uipanel, not an axes (Tips section). "The volshow function creates...

6 years ago | 0

Load more