photo

Aditya Gupta


Last seen: 3 years ago Active since 2020

Followers: 0   Following: 0

Statistics

  • Knowledgeable Level 2
  • First Answer

View badges

Feeds

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...

4 years 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...

4 years 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).

4 years 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.

4 years 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/...

4 years 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.

4 years 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...

4 years 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...

4 years ago | 0

| accepted