Answered
Any built-in graph coloring algorithm in MATLAB?
If you would like to give product suggestions to MathWorks, the makers of MATLAB, the place to do so is here: https://www.mathw...

4 years ago | 1

Answered
Calculation does not work, and it says "Index exceeds the number of array elements"
The error is caused by this code at the bottom of your function: a(h) Your variable a only contains a single number, so there i...

4 years ago | 0

Answered
Subtracting one row from a previous row in a single column of n long data
Use the diff function a = [1 5 6 7 4 3]; diff(a)

4 years ago | 1

Answered
Delete the same numbers appeared in different rows
I can't think of a direct way to do it, but you could use histcounts to determine how many of each number there are, and then ex...

4 years ago | 2

Answered
GUI push button help
What error message are you getting? You probably need to use fullfile to properly construct the path+filename, and then use tha...

4 years ago | 1

Answered
Learner ID in MATLAB-Grader?
It does not. However, you can use random number generating functions to define variables in the reference and learner solutions ...

4 years ago | 1

Answered
Join columns from multiple tables to make 1 really long column
If you want to join the data to a new variable, try something like this to create a vector. data3 = [T1{:,3};T2{:,3}] Use pare...

4 years ago | 0

Answered
What is the mistake in this code ?
I modified your code to be able to run here. There is no error message, and the plots appear. The most likely reason for your er...

4 years ago | 0

| accepted

Answered
Error : 'syms' requires Symbolic Math Toolbox.
If they are on your license, you can install additional toolboxes using the Add-Ons Explorer.

4 years ago | 2

| accepted

Answered
How to merge multiple comma-delimited .dat file matrices into one matrix using MATLAB?
If all your files have the same format and number of colums, I would look into using a file data store. See the Importing Multip...

4 years ago | 0

Answered
How to merge two variables together in a table
Use stack. % Initial table set_no = [1, 2, 3]'; deph1 = [123, 125, 150]'; deph2 = [124, 126, 148]'; T = table(set_no, deph1...

4 years ago | 0

| accepted

Answered
how to add a 10000 pa pressure on an stl file
Take a look at some of the examples here. I would think the simplest one that is somewhat similar is the Defelection Analysis of...

4 years ago | 1

Answered
Code doesn't give any output.
All your y values are NaNs, which is why nothing is showing up. Check your equations. I'd also suggest not using globals, as th...

4 years ago | 0

Answered
Plotting Hourly,Daily,Monthly Energy Consumption
First, the first column of your table contains date and time. The easiest thing to do is to read that in along with the rest of ...

4 years ago | 0

Answered
How to label the points on x axis in hours.
First, you don't have to remove the T and Z. Just use the proper InputFormat for your timestamp t='2016-02-05T01:01:24Z'; T = ...

4 years ago | 0

Answered
MATLAB license renewal error
It would appear you were using a trial license, which is not intended to provide you with perpetual access. I suggest you cont...

4 years ago | 0

Answered
R2021b PDF
https://www.mathworks.com/help/pdf_doc/matlab/index.html

4 years ago | 0

Answered
Extract specific values and row coloumn information in matrix
Use this syntax: [row,col] = find(___) [row,col] = find(B == 5);

4 years ago | 0

| accepted

Answered
Index in position 2 exceeds array bounds (must not exceed 2171).
I don't understand how you came up with the calculation for ravailk, but the sum of all the sizes is leading to a number greater...

4 years ago | 1

| accepted

Answered
How to communicate with a Simulink model through App designer?
Not sure what you are trying to do exactly, but you can use simulink.compiler.genapp to create an app designer app of your model...

4 years ago | 0

| accepted

Answered
I am getting this error
You use importdata to create readFile, which returns data from the file as a matrix, multidimensional array, or scalar structure...

4 years ago | 0

Answered
saving output in a text file
https://www.mathworks.com/help/matlab/import_export/write-to-delimited-data-files.html https://www.mathworks.com/help/matlab/im...

4 years ago | 0

| accepted

Answered
How to store a value obtained from a for loop in a matrix?
You can learn more about for loops in Ch 12 of MATLAB Onramp.

4 years ago | 0

| accepted

Answered
When finding impedance of "2D" antenna I get error : Index exceeds the number of array elements. Index must not exceed 6.
In MATLAB, run the following command to see the script for the example you are trying to follow. openExample('antenna/AntennaMo...

4 years ago | 0

| accepted

Answered
How to filter a table in matlab according to a condition on the elements of one or more columns?
idx = Asteroids_data.a >= 0.9 & Asteroids_data.a <= 1.1 & Asteroids_data.e <= 0.3; newTbl = Asteroids_data(idx,:);

4 years ago | 7

| accepted

Answered
how to plot 5 graph together and 1 graph separately?
Copying the solution given above to an answer. Try clearing your workspace (clear) and closing all figures (close all), then ru...

4 years ago | 0

| accepted

Answered
how to write a function in script matlab?
Create Functions in Files

4 years ago | 0

Answered
Convert double to cell array
You are going to run into some precision errors with a number that large. format long t = 1643201283507717200; t-16432012835...

4 years ago | 0

| accepted

Load more