Community Profile

photo

Aditya Gupta


Last seen: 1 month ago
8 total contributions since 2020

Aditya Gupta's Badges

  • Knowledgeable Level 2
  • First Answer

View details...

Contributions in
View by

Answered
How to plot circle by one single equation?
Adding to the MVP's (perfect) answer, I found one more way: radius = 2; originX = 0; originY = 0; rectangle('Position',[or...

1 month ago | 0

Answered
Accumulate type function for particular row
Maybe you are looking for cumsum() : https://www.mathworks.com/help/matlab/ref/cumsum.html It works like : summ=cumsum(arr,r...

1 month ago | 1

| accepted

Answered
Cannot find error source
Type : le = lasterror That should give you info about the last error. You can find where it is happening (eg : stack).

1 month ago | 0

| accepted

Answered
Running tiny sections of code to debug
Highlight the lines of code you want to run and right click run selection or use breakpoints.

1 month ago | 0

Answered
Plotting of data on the same graph by same script
Create an axes object and set the option for adding of new lines. Read documentation for axes here : https://www.mathworks.com/...

1 month ago | 0

| accepted

Answered
How to keep the size of interface fixed?
Look for 'Position' in your m-file. You're probably calling set() with the 'Position' property set to be the whole screen.

1 month ago | 0

| accepted

Answered
how to run much phyton script with matlab
You can alternatively create a temporary bash script using file operations (and - ofcourse - loops) of the following format: p...

1 month ago | 0

Answered
Index a number of coordinates as vertex(1), vertex(2), ... vertex(n) by using a for loop and vertex(n) = [x(1,n) y(1,n)]
Are you perhaps trying to do something like this? No_vertices = input('Enter number of vertices: '); x = zeros(1,No_vertices...

1 month ago | 0

| accepted