Réponse apportée
How do I collaborate on matlab?
Well, MATLAB does have <https://nl.mathworks.com/help/matlab/source-control.html source control integration> , so you could use ...

plus de 7 ans il y a | 1

Réponse apportée
How can I visualize the trajectory of a moving frame when doing the Simscape Multibody simulation?
Simply plot the data after exporting to workspace: plot(xout.data, yout.data)

plus de 7 ans il y a | 0

Réponse apportée
Calculating distance between 3 points.
You can just use |vecnorm|, right? PD = vecnorm(P-D, 2, 2); PA = vecnorm(P-A, 2, 2);

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Construct quarter circle of data in matrix
I would do it like this: n = 5000; P = [randi(n, n, 1); zeros(n, 1)]; [X, Y] = meshgrid(1:n, flip(1:n)); r = roun...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Pie chart resembling pacman?
I am assuming you want to rotate the chart to look like a Pacman? You could rotate the view angle like this: ax = gca; ...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
What to use to read a binary stl file?
Try the file exchange: <https://nl.mathworks.com/matlabcentral/fileexchange/22409-stl-file-reader>

plus de 7 ans il y a | 0

Réponse apportée
How to wrap for loop around function commands and fplot?
I would choose to store the functions and labels in cells as follows: n = 3; range = 1:n; coeff = cell(n, 1); ano...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
Getting current position (x,y) of a 2D object created with a patch
p = patch('XData',x,'YData',y,'FaceColor','yellow','Parent',g); p.Vertices This should do it.

plus de 7 ans il y a | 0

Réponse apportée
Replacing specific rows in a matrix.
a = xlsread('Book2.xls'); indexB = (a(:, 2) == 9|a(:, 2) ==12) & (a(:, 6) ==2|a(:, 6)==11|a(:, 6)==12); find(indexB) ...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Finding same values in uneven arrays
Use the |ismember| function. A = [3 4 5 6 7 20 21 22 23 24 25 26]; B = [1 2 3 5 6 23 24 28 29 30 102 160 171 189 190]; ...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How to plot for a loop
This should work just fine, although I would suggest using figure(1) instead of figure , which makes a new fig...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
I need help with a for loop that gives me an assignment error.
When you get this kind of error you want to look at the line (11 in this case) and check the sizes of the different variables. S...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Errorbar: change line width of marker line, not of error bars
Unfortunately the errorbar data type does not have any children you can edit directly. I would probably do something like this a...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How do i separate running data?
This is actually a really fun job for a new user. Please look into logical indexing <https://nl.mathworks.com/help/matlab/math/m...

plus de 7 ans il y a | 1

| A accepté

A soumis


Send motivational quotes to your friends
Do you want to support your friends when they are not near? Use this script to show them your love.

plus de 7 ans il y a | 1 téléchargement |

0.0 / 5

Réponse apportée
How to make my coding of canny edge detection into GUI?
Use the |uicontrol| function, see doc control For your example: global I global BW I = imread('ddd.jpg'); ...

plus de 7 ans il y a | 0

Réponse apportée
Joint angle values are changing from an initial to a final value with constant velocity in a given time(Given as a loop function). I have to plot a graph of joint angle motion?
Please take a look at doc refreshdata This will allow you to specify a data source for your plot outside of the loop an...

plus de 7 ans il y a | 0

Réponse apportée
Is there a simple approach to adding spaces before and after every number in a cell array, where each cell is a combination of numbers and letters?
I don't know why I took the time to do this and my function separating the words is super ugly but I think you want something li...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
I have a 1x50 cell array with a 780x6 table in each cell. I can access the cells but i would like to convert the different tables into matrices and give them a distinctive name but the loop gives me an error every time
You cannot store matrices inside matrices, you can however leave them inside the cell and convert them there using *table2array*...

plus de 7 ans il y a | 0

Réponse apportée
How do I add a line, or a linear regression from cftool, to a scatter graph?
You could use *copyobj*: % data n = 200; x = 1:n; y = x+25*rand(1, n); figure(1) % handle to fir...

plus de 7 ans il y a | 0

Réponse apportée
Need help with the pop-up menu and the Checkbox button
I edited <https://mathworks.com/help/matlab/ref/uicontrol.html this> example to include a checkbox, the edited code is attached....

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
How to make Matlab Errors not appear (and therefore end a program)
I think you will want to simply take the input as text without evaluating, to do this use the 's' option in the input function: ...

plus de 7 ans il y a | 0

A résolu


Scoring for oriented dominoes
Given a list of ordered pairs, and the order they should be placed in a line, find the sum of the absolute values of the differe...

plus de 7 ans il y a

A résolu


Is my wife right?
Regardless of input, output the string 'yes'.

plus de 7 ans il y a

A résolu


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

plus de 7 ans il y a

A résolu


Is this triangle right-angled?
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

plus de 7 ans il y a

A résolu


Find a Pythagorean triple
Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

plus de 7 ans il y a

A résolu


Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

plus de 7 ans il y a

A résolu


Area of an Isoceles Triangle
An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<http://upload...

plus de 7 ans il y a

A résolu


Dimensions of a rectangle
The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...

plus de 7 ans il y a

Charger plus