dbmn
自 2016 起处于活动状态
Followers: 0 Following: 0
Matlab afficionado working in the automotive sector
Feeds
已回答
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 ...
7 years 前 | 0
已回答
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...
7 years 前 | 4
已回答
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...
7 years 前 | 0
已回答
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...
7 years 前 | 0
| 已接受
已回答
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...
7 years 前 | 0
已回答
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 ...
7 years 前 | 0
| 已接受
已回答
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);...
7 years 前 | 0
| 已接受
已回答
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...
7 years 前 | 1
已回答
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...
7 years 前 | 0
| 已接受
已回答
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...
7 years 前 | 0
已回答
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...
7 years 前 | 0
已回答
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)']
7 years 前 | 0
已回答
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 %...
7 years 前 | 0
已回答
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 ...
7 years 前 | 0
| 已接受
已回答
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...
7 years 前 | 0
已回答
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...
7 years 前 | 0
已回答
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 ...
7 years 前 | 0
已回答
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 ...
7 years 前 | 0
已回答
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...
7 years 前 | 0
| 已接受
已回答
How to run matlab code in java / android
The toolbox "Matlab Coder" do might what you are looking for. This allows you to export code for a specific language. Be advised...
How to run matlab code in java / android
The toolbox "Matlab Coder" do might what you are looking for. This allows you to export code for a specific language. Be advised...
7 years 前 | 0
已回答
find element in cell
An alternative to KSSVs solution would be this one liner b = a(cellfun(@(x) sum(x==3)>0, a));
find element in cell
An alternative to KSSVs solution would be this one liner b = a(cellfun(@(x) sum(x==3)>0, a));
7 years 前 | 1
已回答
How to plot multiple Xaxis Label| Unit in Hour and Time of the day? Both XLabel at the bottom
You could do something like this: ax1 = gca; ax2 = axes('Position',ax1.Position,... 'XAxisLocation','top',... ...
How to plot multiple Xaxis Label| Unit in Hour and Time of the day? Both XLabel at the bottom
You could do something like this: ax1 = gca; ax2 = axes('Position',ax1.Position,... 'XAxisLocation','top',... ...
7 years 前 | 0
已回答
Replacing each array element with a series of values
One possible solution would be: 0. having T = [1 4 7]; 1. create a temporary matrix T_temp that looks like (th...
Replacing each array element with a series of values
One possible solution would be: 0. having T = [1 4 7]; 1. create a temporary matrix T_temp that looks like (th...
7 years 前 | 0
已回答
access the row and col of a matrix
2 Possibilities Easiest: row column A(2,3) Second possibility (by element count) A(8)
access the row and col of a matrix
2 Possibilities Easiest: row column A(2,3) Second possibility (by element count) A(8)
7 years 前 | 0
已回答
Calculate derivative with 3 matrices
What would you do if you only had 1 Dimension? You would do (y2-y1)/(x2-x1) with x2 being the nearest x to x1. Do exactly the...
Calculate derivative with 3 matrices
What would you do if you only had 1 Dimension? You would do (y2-y1)/(x2-x1) with x2 being the nearest x to x1. Do exactly the...
7 years 前 | 0
已回答
Plot different curves in cycle for
You where almost correct. Just 2 small corrections: 1) "hold on" You added this line at the end of the script - this wont hel...
Plot different curves in cycle for
You where almost correct. Just 2 small corrections: 1) "hold on" You added this line at the end of the script - this wont hel...
7 years 前 | 1
| 已接受
已回答
Applying function only to certain files in directory
The simplest solution is, when you know a priori what your files are called. In that case use wildcards with * listing = dir...
Applying function only to certain files in directory
The simplest solution is, when you know a priori what your files are called. In that case use wildcards with * listing = dir...
7 years 前 | 1
| 已接受
已回答
(MATLAB TRICK AND SHORTCUTS): I would like to rename all my variables within a script without do it manually one by one
There is a simple solution for this, although it is ugly. But it takes minimal time to adapt. *Old Function* function [o...
(MATLAB TRICK AND SHORTCUTS): I would like to rename all my variables within a script without do it manually one by one
There is a simple solution for this, although it is ugly. But it takes minimal time to adapt. *Old Function* function [o...
7 years 前 | 0
已回答
Minimization problem (FMINCON): I am unable to minimize my function: "Not enough input errors" and others
I think the solution might be in the way you created your function fun. if you check the documentation for fmincon it states ...
Minimization problem (FMINCON): I am unable to minimize my function: "Not enough input errors" and others
I think the solution might be in the way you created your function fun. if you check the documentation for fmincon it states ...
7 years 前 | 0
| 已接受
已回答
My 'From Workspace block' does the wrong value after 10 seconds
That is because your variables t only covers the range from 0.0 - 9.8s (checkout t(end)) So after 9.8s your "From Workspace" ...
My 'From Workspace block' does the wrong value after 10 seconds
That is because your variables t only covers the range from 0.0 - 9.8s (checkout t(end)) So after 9.8s your "From Workspace" ...
7 years 前 | 0