93 total contributions since 2016

Matlab afficionado working in the automotive sector

Answered

measure diameter of circle

As KSSV and Adam suggested, you should already have most Information readily available when you were able to detect the circles ...

measure diameter of circle

As KSSV and Adam suggested, you should already have most Information readily available when you were able to detect the circles ...

circa 2 anni ago | 0

Answered

How to remove single quotes around the string

In Matlab, Strings (and Substrings) begin and end with the ' character. See <https://de.mathworks.com/help/matlab/characters-and...

How to remove single quotes around the string

In Matlab, Strings (and Substrings) begin and end with the ' character. See <https://de.mathworks.com/help/matlab/characters-and...

circa 2 anni ago | 2

| accepted

Answered

grid non monotonic XYZ arrays

I assume you want to plot that data. Well the most obvious way would be to just plot the lines with plot3(Xout, Yout, Zo...

grid non monotonic XYZ arrays

I assume you want to plot that data. Well the most obvious way would be to just plot the lines with plot3(Xout, Yout, Zo...

circa 2 anni ago | 0

Answered

Are arrowheads possible on primitive plots?

Instead of reinventing the wheel I suggest you look into the phasor diagrams on the file exchange and search for some inspiratio...

Are arrowheads possible on primitive plots?

Instead of reinventing the wheel I suggest you look into the phasor diagrams on the file exchange and search for some inspiratio...

circa 2 anni ago | 0

| accepted

Answered

is 'runmean' is compatible with Matlab16b? i have magnetic field data for hours. i want to get moving average of that. how can i do?

runmean is a function from the file exchange. But there is a whole Group of functions available from mathworks. You should ch...

is 'runmean' is compatible with Matlab16b? i have magnetic field data for hours. i want to get moving average of that. how can i do?

runmean is a function from the file exchange. But there is a whole Group of functions available from mathworks. You should ch...

circa 2 anni ago | 0

Answered

How to create a gridded matrix with N equally spaced points?

I would advise to use one of the following for the grid [X,Y] = meshgrid(x,y); % with x y being the vectors of your choice ...

How to create a gridded matrix with N equally spaced points?

I would advise to use one of the following for the grid [X,Y] = meshgrid(x,y); % with x y being the vectors of your choice ...

circa 2 anni ago | 0

| accepted

Answered

How to edit surf graph in MATLAB?

This should help you get started. I just added some lines to your code to make it look more like the old one hdl = surf(B);...

How to edit surf graph in MATLAB?

This should help you get started. I just added some lines to your code to make it look more like the old one hdl = surf(B);...

circa 2 anni ago | 0

| accepted

Answered

My plot does not start at 0

The question is not really clear and multiple outcomes are possible. Maybe you could draw (into the image you posted, what you w...

My plot does not start at 0

The question is not really clear and multiple outcomes are possible. Maybe you could draw (into the image you posted, what you w...

circa 2 anni ago | 0

Answered

Unable to use mod function on cell array

you try to convert a int/double to a cell % Create random Variable A A=num2cell(rand(10,10)); % check if your c...

Unable to use mod function on cell array

you try to convert a int/double to a cell % Create random Variable A A=num2cell(rand(10,10)); % check if your c...

circa 2 anni ago | 0

| accepted

Answered

how to find the equivalent resistance of two resistors in parallel and series

<https://de.mathworks.com/help/control/ref/parallel.html parallel> might not be the best function to use here. See more in the d...

how to find the equivalent resistance of two resistors in parallel and series

<https://de.mathworks.com/help/control/ref/parallel.html parallel> might not be the best function to use here. See more in the d...

circa 2 anni ago | 0

Answered

how to find optimize value with two variables

If I understand correctly, you have: x = f(dd); y = g(dd); j = f(dd) + 1/g(dd) = h(dd); which is a one dimensional...

how to find optimize value with two variables

If I understand correctly, you have: x = f(dd); y = g(dd); j = f(dd) + 1/g(dd) = h(dd); which is a one dimensional...

circa 2 anni ago | 0

Solved

Make a checkerboard matrix

Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

circa 2 anni ago

Solved

Find all elements less than 0 or greater than 10 and replace them with NaN

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

circa 2 anni ago

Solved

Triangle Numbers

Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

circa 2 anni ago

Solved

Column Removal

Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

circa 2 anni ago

Solved

Select every other element of a vector

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

circa 2 anni ago

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

circa 2 anni ago

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

circa 2 anni ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

circa 2 anni ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

circa 2 anni ago

Answered

What is the matrix code for column vectors

This should do the trick using the ' for transpose new_matrix = [u', v', (u+v)']

What is the matrix code for column vectors

This should do the trick using the ' for transpose new_matrix = [u', v', (u+v)']

circa 2 anni ago | 0

Answered

How can I delete/extract rows from a table with cell columns consisting of str and numeric values

The easiest way to extract the "pits" is to do the following % Convert your column type to a format called categorical %...

How can I delete/extract rows from a table with cell columns consisting of str and numeric values

The easiest way to extract the "pits" is to do the following % Convert your column type to a format called categorical %...

circa 2 anni ago | 0

Answered

Remove rows by time with datenum

assuming that A is your matrix with A(:,1) the column of your datenums, then simply do % Determine which rows to delete ...

Remove rows by time with datenum

assuming that A is your matrix with A(:,1) the column of your datenums, then simply do % Determine which rows to delete ...

circa 2 anni ago | 0

| accepted

Answered

How can I interpolate

Try to include some of the following functions in your code numel(x) % This allows you to "count" the number of elements...

How can I interpolate

Try to include some of the following functions in your code numel(x) % This allows you to "count" the number of elements...

circa 2 anni ago | 0

Answered

How can i delete rows with zeros from a matrix and rebuild the matrix?

A not so easily readable solution would be the following % Create a zero vector to compare to a=zeros(1,size(E,2)-1...

How can i delete rows with zeros from a matrix and rebuild the matrix?

A not so easily readable solution would be the following % Create a zero vector to compare to a=zeros(1,size(E,2)-1...

circa 2 anni ago | 0

Answered

Comparison of two plots - experimental and model results

One thing you could do is to set both datasets on the same time-base f.ex. % Model Data x1, y1 % Experiment Data x2, y2 ...

Comparison of two plots - experimental and model results

One thing you could do is to set both datasets on the same time-base f.ex. % Model Data x1, y1 % Experiment Data x2, y2 ...

circa 2 anni ago | 0

Answered

How to replace portion of data set with another?

One way to solve this would be by logical indexing (assuming both datasets have the same time increment) % Example data ...

How to replace portion of data set with another?

One way to solve this would be by logical indexing (assuming both datasets have the same time increment) % Example data ...

circa 2 anni ago | 0

Answered

Acceleration vs Time plot

The error you described appears if you try to view the variable in the varible editor so * Suggestion 1: dont use the variabl...

Acceleration vs Time plot

The error you described appears if you try to view the variable in the varible editor so * Suggestion 1: dont use the variabl...

circa 2 anni ago | 0

| accepted