Answered
Hello, I am using MATLAB R 2021a. I am trying to use an example of fitcnet that provided for hyperparameter optimization. But I am encountering the following error.
The issue is that this option did not exist in MATLAB R2021a. If you check the help for fitcnet in R2021a, you will see hyperpar...

4 years ago | 0

Answered
Hi. l am looking for the data set used in an portfolio optimisation example called BlueChipStockMoments. Am l able to access that data file? Thank you
You can run this example in your local MATLAB, meaning the data is shipped with MATLAB. On the Portfolio Optimization Examples p...

4 years ago | 1

| accepted

Answered
Can't find where is the model linearizer app
It is part of the Simulink Control Design toolbox (Look in the left panel here to identify what toolbox it is in). That toolbox...

4 years ago | 0

| accepted

Answered
I am trying to synchronize two tables, how do I do this to keep the date and time format?
I think what may be of most help is this page on accessing data in tables. In the end, that is the biggest changes I made. Here ...

4 years ago | 0

Answered
Rewrite the script without using continue and break statement.
You can remove the if statement containing the break by just using the opposte condition as the conditional statement controllin...

4 years ago | 0

| accepted

Answered
Compare two arrays and unify their elements, but without repetitions
Use union. A=[1 3 6]; B=[3 4 1 5]; C = union(A,B)

4 years ago | 1

| accepted

Answered
Lookup values in other table that has a range of values
Another way that seems to also give the results you would get with vlookup is with discretize. % Recreate your tables holeid =...

4 years ago | 0

Answered
Combine two excel files with different row and column lengths into one excel file
Using readtable and outerjoin, I was able to create the table in MATLAB. Now you can just write it back to Excel using writetabl...

4 years ago | 1

| accepted

Answered
Index Error when plotting - was working now not!
Clear your workspace and then rerun your code. This error suggests you have created a variable named plot, which is taking prec...

4 years ago | 0

| accepted

Answered
Error with matlab gui: Invalid axes handle when using to axes.
The issue arises when you use stackedplot. A stackedplot cannot be added to an existing axes. Instead it replaces the current ax...

4 years ago | 0

Answered
Multiple plots in uiaxes in app designer
I would try using a different approach. Have you looked into stackedplot?

4 years ago | 0

Answered
if-else statement for 4 comparison
I modified your code to run it here and display the error. You are close, but your syntax is incorrect. Assignment in MATLAB is...

4 years ago | 0

Answered
Why am I getting Index exceeds the number of array elements. Index must not exceed 751.
The error is due to the fact that you are inconsitant with the use of n and L. Once you define n, you should use that instead of...

4 years ago | 1

Answered
Can someone help me fix my error code for 3 different data points? I will attach screenshots
The error is given to you in the message. The BinEdges property needs to be a vector of numbers (2 or more) that define the edge...

4 years ago | 1

| accepted

Answered
Plot data vs time color coded by ID
I wonder if gscatter does what you want. There is no line, however. gscatter(x,y,g) time = ['15:02:03'; '15:02:03'; '15:02:04'...

4 years ago | 0

Answered
I have a csv file in excel. It has columns of data that have 2000 points each. I need to call them into matlab and make a graph.
See MATLAB Onramp Ch 9 (plotting data) and 10 (importing data)

4 years ago | 0

Answered
Need to find the area between two functions
Find the area under each function separately, then subtract them.

4 years ago | 0

| accepted

Answered
Unable to use a value of type graph as an index.
Your variable G2 is a graph obejct, but you are using it to index the first position (rows) of neigh_nodes_deg_2, which is a vec...

4 years ago | 0

Answered
APP DESIGNER: Issue with using properties between callback functions.
I think I have discovered the issue. In the SelectDICOMDirectoryButtonPushed() callback function, I have the following line at t...

4 years ago | 1

| accepted

Answered
Readtable identifies 1 less number of rows than original csv
The readtable function is treating the first row as containing the variable name. Perhaps your other files are formatted this wa...

4 years ago | 0

Answered
Add/change value in a table based on a categorical array in the same table
I would use outerjoin. % create List each element has a numeric value ionName = categorical(["Co", "Cr", "Ga"]'); ionNumeric ...

4 years ago | 0

| accepted

Answered
Launching Mathworks OnRamp Courses
You can find details on the self-paced Onramp courses here. https://matlabacademy.mathworks.com/#getting-started For Simulink,...

4 years ago | 1

| accepted

Answered
Bar Graph from a table : Error Xdata must be unique
For bar, groups are created organizing the data into a matrix. The rows correspond to x, and the columns correspond to each data...

4 years ago | 0

| accepted

Answered
Error with matlab gui: Invalid axes handle when using to axes.
It would appear handles.axes2 does not exist. If you have two axes in your gui, make sure you are using the correct name. If not...

4 years ago | 0

| accepted

Answered
Can MATLAB be made cheaper?
To be clear, I am not speaking on behalf of MathWorks. These are my observations. I don't know what price would be acceptable t...

4 years ago | 0

Answered
Lat Long To X Y
You don't want to convert to X and Y because you will get the linear distance. The actual distance must account for curvature of...

4 years ago | 1

Answered
Convert input of a function from scalar to vector
The main difference between the two functions you show is how the data is passed in. F([x,y]) is the same as F(X) when X is a v...

4 years ago | 0

Answered
Recall previous command MatLab app? Arrow key doesn’t work
To clarify, you are using MATLAB Mobile on your ipad. MATLAB apps are something else. To get your command history in MATLAB Mob...

4 years ago | 0

| accepted

Answered
How can i add a distance to time plot in Matlab
You have velocity. Has your teacher taught you how to use time and velocity to get distance yet?

4 years ago | 2

| accepted

Answered
How to fix " ''Value' must be a double scalar within the range of 'Limits'
You set the limits to [-100,100] and then try to set a value equal to amount*1000. We don't know what values you are using, but...

4 years ago | 0

Load more