Answered
How to resolve Undefined function or variable 'x' Issue
The error is because your first two lines are trying to use |t| before it is defined. It appears that you are looking to comp...

7 years ago | 0

Answered
Simulating a robotic action
Hello Hari, I would highly suggest putting a <https://www.mathworks.com/help/matlab/matlab_prog/set-breakpoints.html breakpoi...

7 years ago | 0

Answered
rosbag in matlab2018b error "No definition for Header"
Hello QuangHuy, Though the message definition of "Header" is not defining a particular message, it is a <http://wiki.ros.org/...

7 years ago | 0

Answered
How to display multiple Robotics Occupancy Grid maps in a single window?
Hello Mehmet, You can use the <https://www.mathworks.com/help/robotics/ref/robotics.occupancygrid.show.html#bvaw7ti-1-parent ...

7 years ago | 0

Answered
'parfor' slower than 'for'
Hey Wu, You may find <https://www.mathworks.com/help/distcomp/decide-when-to-use-parfor.html this documentation page> useful ...

7 years ago | 0

| accepted

Answered
Drawing a coloured line into a 2D coordinate System
To clarify this in plain terms, would you like to see a line that changes color as it changes position? Like <http://www.gnuplot...

7 years ago | 1

| accepted

Answered
(App Designer) How can I plot multiple outputs on the same graph from the same function?
It seems that you are doing the right thing to use |hold|, but for UI Figures (including App Designer), you need to pass the UI ...

7 years ago | 0

Answered
How do I connect two uicontrols so that i can find one via the other?
Hello Benjamin, What I usually do in situations like this is to set up the callback for the uicontrol as an anonymous functio...

7 years ago | 0

| accepted

Answered
Cannot run findpeaks on Matlab 2018a with linux I get the following error "Can't load '/Applic.ZIV/Matlab/R2018a/bin/glnxa64/libmwdastudio.so': libXcomposite.so.1: cannot open shared object file: No such file or directory"
Hello Agustin, There are some Linux operating systems that do not come with the necessary underlying components, so I'd first...

7 years ago | 1

Answered
How to add the iteration code in MATLAB
Hello Mavis, In each loop, it seems like you use a previous value of |xr| to create a new value of |Xr_new|. Generally, users...

7 years ago | 0

Answered
file not found in current directory
Hello Chris, By default, MATLAB will cache functions and files for faster finding and executing of them. Generally files newl...

7 years ago | 2

| accepted

Answered
How to define time vectors using different sampling rates and plot.
Hello Charles, How about using <https://www.mathworks.com/help/matlab/ref/linspace.html linspace>? This makes it easy to ensu...

7 years ago | 1

| accepted

Answered
ros simulink with different two laptop
Hello, What I am assuming happened is that both Simulink instances are retaining their default connection settings. This will...

7 years ago | 0

Answered
Find Downloads folder from MATLAB
Hello Matt, Probably the easiest way would be to use environment variables to get close to the location. The <https://www.rap...

8 years ago | 2

| accepted

Answered
the unit will change from second to microsecond during zoom in
Hello, By default, MATLAB sticks to a consistent "unit" that matches with the data provided, since there is no other real way...

8 years ago | 1

| accepted

Answered
How can I do the mean of different matrices, concatenatig them in a 3D matrix?
Hello Livia, I think the easiest way to do this would be to use the <https://www.mathworks.com/help/matlab/ref/matfile.html |...

8 years ago | 0

Answered
A row vector called D with all the numbers between 0 and 2 in steps of 0.1
Well, it depends on how you interpret the word "between". However, in these types of questions, it typically means "between and ...

8 years ago | 1

Answered
Where should I start? Trying to use phone as a motion sensor
Hello Ryan, There is an exact example for doing that with acceleration sensors <https://blogs.mathworks.com/community/2014/10...

8 years ago | 0

Answered
Displaying output in Static box
Hello Fary, When you create the static text, you should get the handle to the object out of it. Then you can have the callbac...

8 years ago | 0

| accepted

Answered
How can i detect Green and Blue color from an image?
Hello Odai, If you are able to determine the shape of objects in the image, then you likely have the location of the item as ...

8 years ago | 1

| accepted

Answered
How to resolve the "Index exceeds matrix dimensions" error ?
Hello Nur, There's a lot to go through there, and a lot of loop iterations as well. I suggest that you run this command in th...

8 years ago | 0

| accepted

Answered
timer misbehaving in GUI after upgrade to 2017b?
Hello Chris, The biggest (relevant to you) change that has happened in that time is a complete change to the graphics engine ...

8 years ago | 0

| accepted

Answered
Robotics in Wall Collision Problem
It looks like the logic that you are using to see if the lines are intersecting is simply comparing the handles to the graphics ...

8 years ago | 0

| accepted

Answered
Assigning class +1/-1 to a 100x2 matrix
Hello Deepayan, You probably are trying to use <https://www.mathworks.com/help/matlab/math/matrix-indexing.html#bq7egb6-1 log...

8 years ago | 0

| accepted

Answered
Hi how can i use function link() i wrote a code for my robotic program and that had a error that say "undefined input argument of "double" for function link"
I couldn't tell you why it's giving you that specific error (usually the phrasing of the error message is different), and it wou...

8 years ago | 0

Answered
Can we control a real robot using ROS(Robot operating system) with simulink or MATLAB Image processing Coding. If it is possible what is the flow of interconnection between these entities ?
Hello Sajid, I am assuming that your desired result is to have your robot publishing images from a camera, MATLAB or Simulink...

8 years ago | 1

Answered
How to collect data into a vector from this data structure?
You can make use of the ability to output a comma-separated list of values from a single-level structure array. In other words, ...

8 years ago | 2

| accepted

Answered
matlab process is too slow
Hello Mahmoud, Does this running of |5+5| take a long time just once, then MATLAB is sufficiently fast for the rest of the se...

8 years ago | 1

Answered
M-file edited and saved by external editor is not recognized by MATLAB
Hello Mehmet, MATLAB caches code so that it is able to run faster. Otherwise, every time you call a function, it would have t...

8 years ago | 0

Answered
Show lat lon ticks with Mapping toolbox and pcolorm
Hello Frank, Try setting the |'MLineLocation'| and |'PLineLocation'| <https://www.mathworks.com/help/map/ref/axesm.html#f12-6...

8 years ago | 0

Load more