Answered

How to find inverse kinematics given D-H parameters?

First create a rigidBodyTree from dh parameters: https://www.mathworks.com/help/robotics/ref/rigidbodyjoint.setfixedtransform.ht...

How to find inverse kinematics given D-H parameters?

First create a rigidBodyTree from dh parameters: https://www.mathworks.com/help/robotics/ref/rigidbodyjoint.setfixedtransform.ht...

25 days ago | 0

Answered

Building an Neural network with multiple inputs

The 10 in the line feedforwardnet(10, 'trainlm'); have nothing to do with the number of inputs. You can put any number here. I...

Building an Neural network with multiple inputs

The 10 in the line feedforwardnet(10, 'trainlm'); have nothing to do with the number of inputs. You can put any number here. I...

25 days ago | 0

| accepted

Answered

Questions about making websites that run user applications

One option might be to use the MATLAB App server, but it seems that it is basically designed for an organization's internal use,...

Questions about making websites that run user applications

One option might be to use the MATLAB App server, but it seems that it is basically designed for an organization's internal use,...

25 days ago | 0

Answered

How to hide web browser while using web function

Which function are you using to download the data? You can use websave(): https://www.mathworks.com/help/releases/R2020b/matlab/...

How to hide web browser while using web function

Which function are you using to download the data? You can use websave(): https://www.mathworks.com/help/releases/R2020b/matlab/...

25 days ago | 0

Answered

machine eps related query

It happens because of finite precision of double() precision datatype: https://en.wikipedia.org/wiki/Double-precision_floating-p...

machine eps related query

It happens because of finite precision of double() precision datatype: https://en.wikipedia.org/wiki/Double-precision_floating-p...

25 days ago | 0

| accepted

Answered

Add markers to a contour plot

It is not possible with single call of contour(). You need to hold the axes and then make a seperate call to plot() or scatter()...

Add markers to a contour plot

It is not possible with single call of contour(). You need to hold the axes and then make a seperate call to plot() or scatter()...

25 days ago | 0

| accepted

Answered

How to Use?: New "Name=Value" Syntax for 2021a

I don't have access to R2021a, but I guess it is supposed to be something like this plot(XData,YData,'LineStyle=-','MarkerSize=...

How to Use?: New "Name=Value" Syntax for 2021a

I don't have access to R2021a, but I guess it is supposed to be something like this plot(XData,YData,'LineStyle=-','MarkerSize=...

25 days ago | 0

Answered

How can I generate an Impulse Train of specific Sampling Frequency?

Try this T = 1; x = -5*T:5*T; stem(x, ones(size(x))) ylim([0 1.5])

How can I generate an Impulse Train of specific Sampling Frequency?

Try this T = 1; x = -5*T:5*T; stem(x, ones(size(x))) ylim([0 1.5])

25 days ago | 0

Answered

how do I shade area under graph with specific x interval?

Try something like this a=10; t=0:0.1:200; c_L=0.2.*(1-exp(1).^(-1/a.*t)); t_shade = 60:0.1:200; c_L_shade = 0.2.*(1-exp(...

how do I shade area under graph with specific x interval?

Try something like this a=10; t=0:0.1:200; c_L=0.2.*(1-exp(1).^(-1/a.*t)); t_shade = 60:0.1:200; c_L_shade = 0.2.*(1-exp(...

26 days ago | 0

| accepted

Answered

Solving Equations in MATLAB

There is no general solution to such a problem. A common way is to specify several starting points for the numerical solver and ...

Solving Equations in MATLAB

There is no general solution to such a problem. A common way is to specify several starting points for the numerical solver and ...

27 days ago | 0

| accepted

Answered

How can I generate the Hankel matrix using the measured datapoints?

Try something like this y = [0 1 3 5 7; 0 2 4 6 8]; k = 2; % Y rows in output matrix [m, n] = size(y); i = hankel(1:n); i...

How can I generate the Hankel matrix using the measured datapoints?

Try something like this y = [0 1 3 5 7; 0 2 4 6 8]; k = 2; % Y rows in output matrix [m, n] = size(y); i = hankel(1:n); i...

27 days ago | 0

| accepted

Answered

displaying RGB colours using SURF.

You can use texture mapping to display an RGB image on a surface(). See here: https://www.mathworks.com/matlabcentral/answers/91...

displaying RGB colours using SURF.

You can use texture mapping to display an RGB image on a surface(). See here: https://www.mathworks.com/matlabcentral/answers/91...

27 days ago | 0

Answered

how to calculate the average for each row of cell array

First use cell2mat() and then apply mean() along rows R_mean = mean(cell2mat(R), 2)

how to calculate the average for each row of cell array

First use cell2mat() and then apply mean() along rows R_mean = mean(cell2mat(R), 2)

27 days ago | 1

| accepted

Answered

How to add trendline to scatterplot?

Something like this x = [2 1 4 68 4 5] y = [5 4 2 23 21 50] p = polyfit(x, y, 1); px = [min(x) max(x)]; py = polyval(p, ...

How to add trendline to scatterplot?

Something like this x = [2 1 4 68 4 5] y = [5 4 2 23 21 50] p = polyfit(x, y, 1); px = [min(x) max(x)]; py = polyval(p, ...

28 days ago | 1

| accepted

Answered

Generating and plotting functions.

The exponent also contain abs() function. You can write it like this t = -1:0.1:3; y = exp(-abs(t)/5); plot(t,y) Also, the u...

Generating and plotting functions.

The exponent also contain abs() function. You can write it like this t = -1:0.1:3; y = exp(-abs(t)/5); plot(t,y) Also, the u...

28 days ago | 0

Answered

Why unifrnd(lb,ub,[nPop,D]) gives error?

This cannot be done in single call to unifrnd. You need a for-loop lb = [0 0 0 0]; ub=[10 10 pi pi]; nPop=30; D = numel(lb); ...

Why unifrnd(lb,ub,[nPop,D]) gives error?

This cannot be done in single call to unifrnd. You need a for-loop lb = [0 0 0 0]; ub=[10 10 pi pi]; nPop=30; D = numel(lb); ...

28 days ago | 0

Answered

Calculating mean of different ranges in a Table

There are several ways to do this in MATLAB. Following shows one option M = rand(900, 10); C = mat2cell(M, 300*ones(size(M,1...

Calculating mean of different ranges in a Table

There are several ways to do this in MATLAB. Following shows one option M = rand(900, 10); C = mat2cell(M, 300*ones(size(M,1...

28 days ago | 0

| accepted

Answered

How can I add column with for loop

The question is not clear. Are you looking for something like this url = {'nam1', 'nam2', 'nam3','nam5', 'name5', 'nam6'}; x...

How can I add column with for loop

The question is not clear. Are you looking for something like this url = {'nam1', 'nam2', 'nam3','nam5', 'name5', 'nam6'}; x...

28 days ago | 0

Answered

Phase portrait of the system in a rectangle

You can use quiver(). For example, [x,y] = meshgrid(linspace(-1,1,20)); dx = 2*x-y-5; dy = 3*x-2*y-9; quiver(x, y, dx, d...

Phase portrait of the system in a rectangle

You can use quiver(). For example, [x,y] = meshgrid(linspace(-1,1,20)); dx = 2*x-y-5; dy = 3*x-2*y-9; quiver(x, y, dx, d...

28 days ago | 0

| accepted

Answered

Interpolation over datetime for 2 arrays

Your data is not directly in the correct format for interp1(). You first need to pre-process your data. For example CGM_date = ...

Interpolation over datetime for 2 arrays

Your data is not directly in the correct format for interp1(). You first need to pre-process your data. For example CGM_date = ...

28 days ago | 0

| accepted

Answered

please help me with this

Use square brackets instead of parenthesis in the definition of eqns syms t1 t2 t3 t4 t5 t6 eqns = [-0.7591*t1+0.3789*t2 == -...

please help me with this

Use square brackets instead of parenthesis in the definition of eqns syms t1 t2 t3 t4 t5 t6 eqns = [-0.7591*t1+0.3789*t2 == -...

28 days ago | 1

| accepted

Answered

function repeat number?

combvec() from the Deep learning toolbox is most easiest solution a = [1 2 3] b = [1 2 3] C = combvec(a, b).'; % if the order...

function repeat number?

combvec() from the Deep learning toolbox is most easiest solution a = [1 2 3] b = [1 2 3] C = combvec(a, b).'; % if the order...

1 month ago | 1

| accepted

Answered

Calculate the mean of multiple 3D arrays layer by layer

I am not sure why you are concerned about the layers. You are just taking an element-wise average of two matrices. Talking about...

Calculate the mean of multiple 3D arrays layer by layer

I am not sure why you are concerned about the layers. You are just taking an element-wise average of two matrices. Talking about...

1 month ago | 0

| accepted

Answered

How do I create a function that solves systems of linear equations of N size?

"Is it possible to make a function like this?" Yes. Just name it something else, since size() is a built-in function. x = mySi...

How do I create a function that solves systems of linear equations of N size?

"Is it possible to make a function like this?" Yes. Just name it something else, since size() is a built-in function. x = mySi...

1 month ago | 0

Answered

function day is not working in matlab 2020a

Function day() is defined for datetime input arguments. For example >> t = datetime('now'); >> day(t) ans = 21

function day is not working in matlab 2020a

Function day() is defined for datetime input arguments. For example >> t = datetime('now'); >> day(t) ans = 21

1 month ago | 0

| accepted

Answered

problrem for desactivate MATALB on my old PC

Try deactivating the license on the old PC using the license center: https://www.mathworks.com/mwaccount/. Go to this link, sele...

problrem for desactivate MATALB on my old PC

Try deactivating the license on the old PC using the license center: https://www.mathworks.com/mwaccount/. Go to this link, sele...

1 month ago | 1

Answered

Export big subplot problem

Which command are you using to save the pdf file? Are you using the GUI? I suggest using the exportgraphics(): https://www.mathw...

Export big subplot problem

Which command are you using to save the pdf file? Are you using the GUI? I suggest using the exportgraphics(): https://www.mathw...

1 month ago | 0

Answered

Can a university purchase MATLAB student license as organization.

Only Mathwork's sales team: https://www.mathworks.com/company/aboutus/contact_us/contact_sales.html can give a valid answer. Thi...

Can a university purchase MATLAB student license as organization.

Only Mathwork's sales team: https://www.mathworks.com/company/aboutus/contact_us/contact_sales.html can give a valid answer. Thi...

1 month ago | 0

Answered

Extracting a number from cells

How are these strings stored? Are these stored in a cell array? If yes, try something like this C = {'Monday06', 'Monday10', 'M...

Extracting a number from cells

How are these strings stored? Are these stored in a cell array? If yes, try something like this C = {'Monday06', 'Monday10', 'M...

1 month ago | 0

Answered

How to solve stiff ODEs with MATLAB Coder?

No, unless MathWorks add support, there is no way to generate the C code for these functions. However, you can try this FEX pack...

How to solve stiff ODEs with MATLAB Coder?

No, unless MathWorks add support, there is no way to generate the C code for these functions. However, you can try this FEX pack...

1 month ago | 1