Answered
MATLAB Onramp can not be accessed
I had something like this recently happen to me. Here is what worked for me. Navigate to the course page Under the Resume Cour...

4 years ago | 0

Answered
How do I create a geometry with a spline as an edge?
I find it easiest to create complex geometries in a CAD program, export the shape to an stl file, and then import the stl using ...

4 years ago | 1

Answered
Index in position 2 exceeds array bounds. Index must not exceed 27.
Somewhere in your code, you have a matrix of nx27, but in your code, you are trying to access a column > 27. a=rand(3,27); % W...

4 years ago | 0

Answered
How do I add a column to an existing matrix?
Use [] to concatenate your result to your existing variable. You'll need to force your for loop to create a column vector instea...

4 years ago | 0

| accepted

Answered
Get all unique combinations of 2 columns from a table
I would look into using the perms function, along with the unique and diff functions.

4 years ago | 0

Answered
How do I transform this format 202007011030 (2020 07 01 10:30) into a readabel format?
I think you would first need to read in the dates as strings, and then use datetime to convert them to datetimes. It seems when ...

4 years ago | 0

Answered
How to extract all the data for a fixed year
Load your data with readtable, with the dates imported as datetimes. Then you can use the isbetween function to identify the row...

4 years ago | 0

Answered
Calling function from different m-file
Call it by name. The file must be either in your current folder, or in a folder that has been added to your MATLAB path. The ca...

4 years ago | 0

Answered
Error using odearguments and Error in ode45
As an initial guess, I wonder if app.y2 and app.y1 have not yet been assigned values. Currently, most of your variables will onl...

4 years ago | 1

Answered
Creating a new function in App Designer places the new function inside of another function
It shouldn't be doing this. Please try restarting MATLAB. If the issue returns, please contact support.

4 years ago | 0

Answered
How can I change scaling of my graph depending on the output value?
The issue is that, by setting your XTicks manually, you have changed the XTickMode to manual instead of Auto. Therefore, your ti...

4 years ago | 0

| accepted

Answered
Y data addition on scatter plot
Use square brackets to define vectors, not curly braces. You might find MATLAB Onramp helpful, especially chapters 2, 4 & 9. Als...

4 years ago | 1

Answered
Missing value for predict in Classification Learner App
I was able to train using trainingData and test using testingData in R2021a without getting any errors. Can you provide more ...

4 years ago | 0

| accepted

Answered
Hi, Please help me convert these mathematical calculations into matlab code
If you spend about an hour of time in MATLAB Onramp (first 8 chapters), you could perform these calculations yourself.

4 years ago | 0

Answered
Binning 2 columns and summing 3rd
I would put your data into a table, then use groupsummary to bin and sum the data as you describe. You will find the Access Data...

4 years ago | 0

| accepted

Answered
How to filter out the noise to see the general trend
I might suggest using the Smooth noise data Live Task. This will allow you to interactively filter your data. Once you have a re...

4 years ago | 0

| accepted

Answered
Adapt size of vector with interp1
I don't think using random number matrices creates a meaningful example here. Consider this example from the interp1 documentati...

4 years ago | 0

Answered
importGeometry pde not closed volume H I Beam Partial Differential Equation Toolbox
A quick check with an STL checker (Materialize MiniMagics) found 16 bad edges, which prevents the STL from being 3D printed (wha...

4 years ago | 0

| accepted

Answered
create a new column of data showing (n+1)-n of old column
This is what the diff function does. If X is a vector of length m, then Y = diff(X) returns a vector of length m-1. The element...

4 years ago | 0

| accepted

Answered
How to sum elements of matrix in certain condition?
A = [1.0999 -1.0999 -2.0590 0 -1.0999 0 0; 0 0 0.1168 -0.1168 0 -1.099...

4 years ago | 0

| accepted

Answered
xlswrite inserting characters to excel formula help
I think the issue is that QFS is not a recognized Excel formula, so Excel is assuming you are using a named table reference (I t...

4 years ago | 0

| accepted

Answered
Expert Guide Required for plotting this array
You plotting code is fine. The issue is the syntax error in the line before your plot command. I'm not sure what the '= [p]' is ...

4 years ago | 1

| accepted

Answered
Scatter3 plot to solid model
Try this answer. k=boundary([V(:,1),V(:,2),V(:,3)]); trisurf(k,V(:,1),V(:,2),V(:,3),'EdgeColor','none')

4 years ago | 0

| accepted

Answered
Plots with [N x M] Matrix
You may want a histogram. histogram(X,edges) % nxm matrix grades = randi(100,5,3); histogram(grades,[0:10:100]) xlabel("Gra...

4 years ago | 0

| accepted

Answered
How do I open a .raw file so that it can be viewed as a table?
Consider starting with this: T = readtable("OS-1-69-B1-HT.is_comp.raw",'Delimiter',{'"',','},... 'FileType','text','numHea...

4 years ago | 0

| accepted

Answered
How to plot the results below ?
I would suggest converting the extracted timestamps to durations. Then you can just plot it. The x value will be the index numbe...

4 years ago | 0

| accepted

Answered
Plot some given waveforms using Matlab
Perhaps look into how they developed the simulation model in this paper. They cite this model as the inspiration for their appro...

4 years ago | 0

| accepted

Answered
Matlab online: Large .mat loaded 12/28/2021; won't load now
Contact support.

4 years ago | 0

Answered
Find local min point in plot
I suggest trying out the 'Find local extrema' live task. This will allow you to interactively set criterial for finding maxima a...

4 years ago | 0

| accepted

Answered
How to find points inside Singapore?
You are correct, landareas does not contain a shape with the name 'Singapore'. landareas = shaperead('landareas.shp','UseGeoCoo...

4 years ago | 0

| accepted

Load more