Answered

Timer in MATLAB Grader

I don't think a timer will work the way you are wanting. MATLAB Grader only has a transactional connection to a MATLAB worker. M...

Timer in MATLAB Grader

I don't think a timer will work the way you are wanting. MATLAB Grader only has a transactional connection to a MATLAB worker. M...

3 days ago | 0

Answered

readtable is jumping to a new row after delimiter

A delimiter is what indicates where to separate words. It seems the delimiter is already a space, as you are already getting the...

readtable is jumping to a new row after delimiter

A delimiter is what indicates where to separate words. It seems the delimiter is already a space, as you are already getting the...

4 days ago | 0

Answered

App Designer duplicates Graphs

Would need to see your code that generates the plot to be certain, but I suspect you have hold on, and use the plot command ever...

App Designer duplicates Graphs

Would need to see your code that generates the plot to be certain, but I suspect you have hold on, and use the plot command ever...

4 days ago | 0

Answered

Saving for loop output ever iteration

There are some issues: you are not capturing/saving every value of G. You probably want to use loop counter j. G(j) = 2.9+n; Y...

Saving for loop output ever iteration

There are some issues: you are not capturing/saving every value of G. You probably want to use loop counter j. G(j) = 2.9+n; Y...

4 days ago | 0

| accepted

Answered

How to ask MATLAB to predict the next value in a graph

You probably want to extrapolate. See this answer. You could also consider fitting the data using polyfit, then calculating the...

How to ask MATLAB to predict the next value in a graph

You probably want to extrapolate. See this answer. You could also consider fitting the data using polyfit, then calculating the...

5 days ago | 0

Answered

Function definitions are not permitted in this context.

Functions must be placed at the very bottom of your script or in a separate file. Try this: close all; load lawdata rng defau...

Function definitions are not permitted in this context.

Functions must be placed at the very bottom of your script or in a separate file. Try this: close all; load lawdata rng defau...

9 days ago | 0

Answered

How can I upload / download image from my google drive using matlab?

Since Walter has pointed you to a question I asked a couple times now, I'll chime in that I abandoned my attempts to do this in ...

How can I upload / download image from my google drive using matlab?

Since Walter has pointed you to a question I asked a couple times now, I'll chime in that I abandoned my attempts to do this in ...

10 days ago | 1

| accepted

Answered

Best way to split data into random partitions?

I would use the dividerand function in the Deep Learning Toolbox. For example [trainInd,valInd,testInd] = dividerand(3000,0.6,...

Best way to split data into random partitions?

I would use the dividerand function in the Deep Learning Toolbox. For example [trainInd,valInd,testInd] = dividerand(3000,0.6,...

10 days ago | 1

| accepted

Answered

I dont know why I am getting error saying statistics and mechine learning toolbox is required

The function 'dataset' is a function in the Statistics and Machine Learning Toolbox. You must have that toolbox installed to use...

I dont know why I am getting error saying statistics and mechine learning toolbox is required

The function 'dataset' is a function in the Statistics and Machine Learning Toolbox. You must have that toolbox installed to use...

11 days ago | 0

Answered

Finding the Meshgrid provided a surface.

How are you given the surface? As a fig file? You could extract the X and Y indices of the surface: x = -4:0.4:4; y = -8:0.4:...

Finding the Meshgrid provided a surface.

How are you given the surface? As a fig file? You could extract the X and Y indices of the surface: x = -4:0.4:4; y = -8:0.4:...

14 days ago | 0

| accepted

Answered

How to prevent .xlsread to turn string data to NaN value

xlsread with a single output only returns numeric data. num = xlsread(filename) reads the first worksheet in the Microsoft® Ex...

How to prevent .xlsread to turn string data to NaN value

xlsread with a single output only returns numeric data. num = xlsread(filename) reads the first worksheet in the Microsoft® Ex...

15 days ago | 0

Answered

How do I set YAxis of Axes from a numeric ruler to a datetime ruler?

This can be handled automatically if your Y variable is a datetime. td = datetime(datestr(now + [0:10]'),'Format','MMM-dd'); x...

How do I set YAxis of Axes from a numeric ruler to a datetime ruler?

This can be handled automatically if your Y variable is a datetime. td = datetime(datestr(now + [0:10]'),'Format','MMM-dd'); x...

15 days ago | 0

Answered

How to select specific cells rows in a column

I'm a fan of readtable, so although it takes more setup, I think overall it handles tables better. Here is code that just finds...

How to select specific cells rows in a column

I'm a fan of readtable, so although it takes more setup, I think overall it handles tables better. Here is code that just finds...

17 days ago | 0

Answered

GUI panels are not showing

Your code logic looks good. The issue, I think, is that you are indexing incorrectly into contents to assign a value to popupmen...

GUI panels are not showing

Your code logic looks good. The issue, I think, is that you are indexing incorrectly into contents to assign a value to popupmen...

17 days ago | 0

| accepted

Answered

How can I add new desktop code font to Matlab on Ubuntu?

Does MathWorks response to a similar question help? It mentions windows and linux, not Ubuntu.

How can I add new desktop code font to Matlab on Ubuntu?

Does MathWorks response to a similar question help? It mentions windows and linux, not Ubuntu.

18 days ago | 0

Answered

How can I add a font to Matlab's list of available fonts?

See MathWorks response to a very similar question here.

How can I add a font to Matlab's list of available fonts?

See MathWorks response to a very similar question here.

18 days ago | 0

Answered

How can I get Matlab to recognize a font that is Installed on my local computer?

See MathWorks response to a very similar question here.

How can I get Matlab to recognize a font that is Installed on my local computer?

See MathWorks response to a very similar question here.

18 days ago | 0

Answered

Window callback function not supported in uifigure of App Designer

From the documentation for 17a UI figures support only a subset of the properties that traditional figures support. For example...

Window callback function not supported in uifigure of App Designer

From the documentation for 17a UI figures support only a subset of the properties that traditional figures support. For example...

18 days ago | 0

| accepted

Answered

use surf() to plot a circle from a rectangle matrix

Sure. See this StackExchange post about exactly this. I'm copying the code below [x, y] = ndgrid(linspace(-1,1,500)); z = cos(...

use surf() to plot a circle from a rectangle matrix

Sure. See this StackExchange post about exactly this. I'm copying the code below [x, y] = ndgrid(linspace(-1,1,500)); z = cos(...

18 days ago | 0

Answered

How to format surface data into XYZ point cloud?

If you can successfully create a surface with your data using surf(X,Y,Z), the best way to create an X,Y,Z point cloud is to use...

How to format surface data into XYZ point cloud?

If you can successfully create a surface with your data using surf(X,Y,Z), the best way to create an X,Y,Z point cloud is to use...

18 days ago | 0

Answered

how to append row in excel sheet

Look at the documentation for xlswrite: xlswrite(filename,A) writes matrix A to the first worksheet in the Microsoft® Excel® sp...

how to append row in excel sheet

Look at the documentation for xlswrite: xlswrite(filename,A) writes matrix A to the first worksheet in the Microsoft® Excel® sp...

18 days ago | 0

Answered

How can I put the table in txt?

I'm pretty sure fprintf can't write a table. Try using writetable instead.

How can I put the table in txt?

I'm pretty sure fprintf can't write a table. Try using writetable instead.

19 days ago | 0

Answered

While Loop if Condition is True

Check out this answer. It might help you out. Also, you need to give your function a name and a variable to output: function o...

While Loop if Condition is True

Check out this answer. It might help you out. Also, you need to give your function a name and a variable to output: function o...

19 days ago | 0

Answered

How to construct 3D image from 2D binary stacks

Does this StackOverflow post help?

How to construct 3D image from 2D binary stacks

Does this StackOverflow post help?

19 days ago | 0

Answered

Split and group data in Array

Here's one way if you want the values to be rounded to represent what is in your input speed array. load speed.mat % Round v...

Split and group data in Array

Here's one way if you want the values to be rounded to represent what is in your input speed array. load speed.mat % Round v...

19 days ago | 1

| accepted

Answered

Split and group data in Array

Use findgroups and splitapply functions. Here is a simple example provided in the documentation % Load table containing info f...

Split and group data in Array

Use findgroups and splitapply functions. Here is a simple example provided in the documentation % Load table containing info f...

19 days ago | 0

Answered

Adding vertical line to graph

If you are on the latest version of MATLAB (18b), try using the new xline function. xline(x1) Otherwise, what happens if you u...

Adding vertical line to graph

If you are on the latest version of MATLAB (18b), try using the new xline function. xline(x1) Otherwise, what happens if you u...

19 days ago | 2

| accepted

Answered

How to find the total value by category in a table

Use findgroups and splitapply. G = findgroups(Table.Clase); Result = splitapply(@sum,Table.Monto,G); Result = table(categorie...

How to find the total value by category in a table

Use findgroups and splitapply. G = findgroups(Table.Clase); Result = splitapply(@sum,Table.Monto,G); Result = table(categorie...

20 days ago | 1

| accepted

Answered

getting error as Matrix dimensions must agree." can someone help me resolve this

The error is the variables conj(E1_t), E2_t, Dk, and z in the expression dE_omega_dz(1:length(E_omega)/2) = fft(1i*conj(E1_t).*...

getting error as Matrix dimensions must agree." can someone help me resolve this

The error is the variables conj(E1_t), E2_t, Dk, and z in the expression dE_omega_dz(1:length(E_omega)/2) = fft(1i*conj(E1_t).*...

20 days ago | 0