Submitted

Control of Robotic arm using Simulink and ROS

Simulink example models to demonstrate the use of ROS together with hardware support packages to create a multi-node robotic sys...

11 mois ago | 22 downloads |

Answered

Error about “Maximum recursion limit of 500 reached”

The problem is happening in |Bubble_point_T()| function. You are recursively calling it, and the termination condition is i...

Error about “Maximum recursion limit of 500 reached”

The problem is happening in |Bubble_point_T()| function. You are recursively calling it, and the termination condition is i...

plus d'un an ago | 1

| accepted

Solved

Must be in the front row...

You are given a matrix followed by a single number. Your object is to write a script that will shift the matrix around so that ...

plus d'un an ago

Solved

Too Many Zeros, Dump Them!

Sometimes when I create a matrix, I use this syntax: a = zeros(1000,1000); But when the function ends, I find that I don'...

plus d'un an ago

Solved

A matrix of extroverts

Now that the introverts have had their script, the extroverts spoke up (naturally!) and demanded one as well. You will be given...

plus d'un an ago

Solved

Enlarge array

Given an m-by-n numeric array (A) and a 1-by-2 vector (sz) indicating the dimensions [p q] to enlarge each element, return an (m...

plus d'un an ago

Solved

Replace Nonzero Numbers with 1

Given the matrix x, return the matrix y with non zero elements replaced with 1. Example: Input x = [ 1 2 0 0 0 ...

plus d'un an ago

Solved

Remove entire row and column in the matrix containing the input values

Remove the entire row and column from the matrix containing specific values. The specified value can be a scalar or a vector. Fo...

plus d'un an ago

Solved

subtract central cross

Given an n-by-n square matrix, where n is an odd number, return the matrix without the central row and the central column.

plus d'un an ago

Solved

Write a function man that takes a row vector v and returns a matrix H as follows..

Write a function called man that takes a row vector v as an input and returns a matrix H whose first column consist of the eleme...

plus d'un an ago

Solved

frame of the matrix

Given the matrix M, return M without the external frame.

plus d'un an ago

Answered

reversing the inverse hyperbolic sine function

MATLAB also has hyperbolic sin <https://www.mathworks.com/help/matlab/ref/sinh.html |sinh()|> function. y = asinh(x); si...

reversing the inverse hyperbolic sine function

MATLAB also has hyperbolic sin <https://www.mathworks.com/help/matlab/ref/sinh.html |sinh()|> function. y = asinh(x); si...

plus d'un an ago | 0

| accepted

Answered

If condition for a large number of different numbers

<https://www.mathworks.com/help/matlab/ref/max.html |max()|> function returns both maximum value and its index. [value, ind...

If condition for a large number of different numbers

<https://www.mathworks.com/help/matlab/ref/max.html |max()|> function returns both maximum value and its index. [value, ind...

plus d'un an ago | 0

Answered

Why I can't plot a line with my function???

As Stephen pointed out, you are only plotting one point at a time, therefore the can't join to form a line. One way is to assign...

Why I can't plot a line with my function???

As Stephen pointed out, you are only plotting one point at a time, therefore the can't join to form a line. One way is to assign...

plus d'un an ago | 0

| accepted

Answered

calculate slope from linear fit data

The intercept is indeed 0.5. Intercept is the value on y-axis when |x=0|. Whereas you 2.2 is the value when |x=1|.

calculate slope from linear fit data

The intercept is indeed 0.5. Intercept is the value on y-axis when |x=0|. Whereas you 2.2 is the value when |x=1|.

plus d'un an ago | 0

| accepted

Answered

how to read a text file using dlmread that is not in matlab directory?

If it is not on MATLAB path, you can still read it by specifying the correct Absolute or relative paths. For example, the follow...

how to read a text file using dlmread that is not in matlab directory?

If it is not on MATLAB path, you can still read it by specifying the correct Absolute or relative paths. For example, the follow...

plus d'un an ago | 1

| accepted

Answered

Simulink model running in "real time"

In R018a, you can go to *Simulation > Pacing Option* from the menu bar and set the simulation speed. In older versions, you will...

Simulink model running in "real time"

In R018a, you can go to *Simulation > Pacing Option* from the menu bar and set the simulation speed. In older versions, you will...

plus d'un an ago | 0

| accepted

Answered

could anyone help me to find the first number in the row

See <https://www.mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab.html Indexing>. row(1)

could anyone help me to find the first number in the row

See <https://www.mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab.html Indexing>. row(1)

plus d'un an ago | 0

Answered

undefined function or variable error in matlab simulink?

There are some typing mistakes in |ur10_forward_kinematic()|. For example in the input list the variable name is |Theta2|, where...

undefined function or variable error in matlab simulink?

There are some typing mistakes in |ur10_forward_kinematic()|. For example in the input list the variable name is |Theta2|, where...

plus d'un an ago | 0

| accepted

Answered

How to prevent a program in matlab to ask the user enter parameters value several times

If you are using |input()| function in your code to ask for user input then you should either replace |input()| statements with ...

How to prevent a program in matlab to ask the user enter parameters value several times

If you are using |input()| function in your code to ask for user input then you should either replace |input()| statements with ...

plus d'un an ago | 0

| accepted

Answered

How to calculate integral of a square waveform

You can use the |square()| function to create a square wave with the time period of |2*pi| and amplitude between |-1| and |1|. A...

How to calculate integral of a square waveform

You can use the |square()| function to create a square wave with the time period of |2*pi| and amplitude between |-1| and |1|. A...

plus d'un an ago | 0

| accepted

Answered

Why do I get the error "Array indices must either be real positive integers or logical"?

Change the following lines in your code as follow Df = diff(f,x); D2f = diff(f,x,2); i.e. remove the |(x)|. It will rem...

Why do I get the error "Array indices must either be real positive integers or logical"?

Change the following lines in your code as follow Df = diff(f,x); D2f = diff(f,x,2); i.e. remove the |(x)|. It will rem...

plus d'un an ago | 0

Answered

Hello i'm new use matlab. i would like to use savitzky golay to smooth my data. I have the data in .txt format. Can you help me how to plot my data and use the savgol filteriing? Thank you

You can use <https://www.mathworks.com/help/signal/ref/sgolayfilt.html |sgolayfilt()|> function from Signal Processing Toolbox. ...

Hello i'm new use matlab. i would like to use savitzky golay to smooth my data. I have the data in .txt format. Can you help me how to plot my data and use the savgol filteriing? Thank you

You can use <https://www.mathworks.com/help/signal/ref/sgolayfilt.html |sgolayfilt()|> function from Signal Processing Toolbox. ...

plus d'un an ago | 0

| accepted

Answered

rotate my countour plot without changing the axes

|rotate()| function documentation does not include |contour| objects for rotation. However, for 180-degree rotation, the followi...

rotate my countour plot without changing the axes

|rotate()| function documentation does not include |contour| objects for rotation. However, for 180-degree rotation, the followi...

plus d'un an ago | 0

| accepted

Answered

Interpolate matrices for different times in Matlab

You can use |interp3| as follow: clear all; a(:,:,1) = [1 1 1;2 2 2;3 3 3]; % Matrix 1 a(:,:,2) = [4 4 4;6 6 6;8 8 8]; % ...

Interpolate matrices for different times in Matlab

You can use |interp3| as follow: clear all; a(:,:,1) = [1 1 1;2 2 2;3 3 3]; % Matrix 1 a(:,:,2) = [4 4 4;6 6 6;8 8 8]; % ...

plus d'un an ago | 0

Answered

Different time response of same trasfer function in matlab and simulink

The Simulink is giving the same plot as MATLAB, the problem in the display is happening because The system step response has a v...

Different time response of same trasfer function in matlab and simulink

The Simulink is giving the same plot as MATLAB, the problem in the display is happening because The system step response has a v...

plus d'un an ago | 0

Answered

hi, i want to generate a signal from simulink that activate a m-file code. how can i do that?

You can use <https://www.mathworks.com/help/simulink/slref/matlabfunction.html MATLAB function> block to use MATLAB code in Simu...

hi, i want to generate a signal from simulink that activate a m-file code. how can i do that?

You can use <https://www.mathworks.com/help/simulink/slref/matlabfunction.html MATLAB function> block to use MATLAB code in Simu...

plus d'un an ago | 0

Answered

How to put the figure on on uipanel?

You can't directly plot on the |uipanel| object. You first need to overlay an axes object in the panel and then plot on the axes...

How to put the figure on on uipanel?

You can't directly plot on the |uipanel| object. You first need to overlay an axes object in the panel and then plot on the axes...

plus d'un an ago | 0

| accepted

Answered

How to replace char 'null' in number 0?

The image shows a struct which |char| arrays as fields. You can use <https://www.mathworks.com/help/matlab/ref/strrep.html |strr...

How to replace char 'null' in number 0?

The image shows a struct which |char| arrays as fields. You can use <https://www.mathworks.com/help/matlab/ref/strrep.html |strr...

plus d'un an ago | 0

Answered

variable editor and live scripts

If you want to generate a code to recreate a variable, then try following ways * Using command window matlab.io.saveVari...

variable editor and live scripts

If you want to generate a code to recreate a variable, then try following ways * Using command window matlab.io.saveVari...

plus d'un an ago | 0

| accepted