Kai Domhardt
Technische Universität Darmstadt
Followers: 0 Following: 0
Feeds
已回答
How to get apostrophe's around each element in a matrix?
When you have a matrix filled with numerical entries, like numeric_matrix = [1,2;3,4] you can insert its elements into a...
How to get apostrophe's around each element in a matrix?
When you have a matrix filled with numerical entries, like numeric_matrix = [1,2;3,4] you can insert its elements into a...
6 years 前 | 1
| 已接受
已回答
Calculate distance between two coordinates with depth
If I understand your question right, the solution should be to use the <https://de.mathworks.com/matlabcentral/fileexchange/2778...
Calculate distance between two coordinates with depth
If I understand your question right, the solution should be to use the <https://de.mathworks.com/matlabcentral/fileexchange/2778...
6 years 前 | 0
| 已接受
已回答
Why my code is not working, showing the error "Illegal use of reserved keyword "elseif"
Your control flow is broken, it appears that there is always one "end" when you see three "end" Also there is no If statem...
Why my code is not working, showing the error "Illegal use of reserved keyword "elseif"
Your control flow is broken, it appears that there is always one "end" when you see three "end" Also there is no If statem...
6 years 前 | 0
已回答
how to concatenate numbers from multiple cells into a single number?
This should do what you need: n = sum(a.*10.^[length(a)-1:-1:0])
how to concatenate numbers from multiple cells into a single number?
This should do what you need: n = sum(a.*10.^[length(a)-1:-1:0])
6 years 前 | 0
已回答
Plot a line over every frame in a for loop
You need to a pause inbetween frames, before the next imshow(Im) executes. Adding pause(0.1) as the final line insi...
Plot a line over every frame in a for loop
You need to a pause inbetween frames, before the next imshow(Im) executes. Adding pause(0.1) as the final line insi...
6 years 前 | 0
| 已接受
已回答
Continuous tracking of 'LocationChanged' event of figure
If you are just trying to display two plot side by side the <https://de.mathworks.com/help/matlab/ref/subplot.html subplot> func...
Continuous tracking of 'LocationChanged' event of figure
If you are just trying to display two plot side by side the <https://de.mathworks.com/help/matlab/ref/subplot.html subplot> func...
6 years 前 | 2
已回答
Importing multiple text files from multiple folders
What you want to do is check each folder individually for the number files in it. folders = 22; format = '%f%C%C'; fi...
Importing multiple text files from multiple folders
What you want to do is check each folder individually for the number files in it. folders = 22; format = '%f%C%C'; fi...
6 years 前 | 0
| 已接受
已回答
How to delete enitre row if the row contain matching string
Quick answer: to_delete = (strcmp(data(:,3),'NANA') | strcmp(data(:,4),'NANA')); data(to_delete,:) = []; If you are i...
How to delete enitre row if the row contain matching string
Quick answer: to_delete = (strcmp(data(:,3),'NANA') | strcmp(data(:,4),'NANA')); data(to_delete,:) = []; If you are i...
7 years 前 | 1
| 已接受
已回答
How do I make a script that outputs all numbers containing a certain set of digits?
digits = [2,4,5,7,9]; sum(perms(digits).*10.^[size(digits,2)-1:-1:0],2); --- perms(digits) creates all permutati...
How do I make a script that outputs all numbers containing a certain set of digits?
digits = [2,4,5,7,9]; sum(perms(digits).*10.^[size(digits,2)-1:-1:0],2); --- perms(digits) creates all permutati...
7 years 前 | 1
| 已接受
已回答
Analyse table value for calculations
First you will want to select the relevant subset of your data. For this example I will simply use the data of february. fe...
Analyse table value for calculations
First you will want to select the relevant subset of your data. For this example I will simply use the data of february. fe...
7 years 前 | 0
已回答
Create a time delayed cosine function
Your signal starts with the cosine wave, you will need to define the signal for 0 sec to 4.26 sec. ts=0.0001; freq = 2...
Create a time delayed cosine function
Your signal starts with the cosine wave, you will need to define the signal for 0 sec to 4.26 sec. ts=0.0001; freq = 2...
7 years 前 | 0
已解决
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...
7 years 前
已解决
Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...
7 years 前
已解决
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...
7 years 前
已解决
Find if a given sentence is a palindrome
Given a string/character array, return true if the string is a palindrome else returns false. For example: sample_text =...
7 years 前
已回答
Bigger than 2GB Data Storage
Take from <https://de.mathworks.com/help/matlab/ref/save.html#inputarg_version the reference> and tested with Matlab R2016b: ...
Bigger than 2GB Data Storage
Take from <https://de.mathworks.com/help/matlab/ref/save.html#inputarg_version the reference> and tested with Matlab R2016b: ...
7 years 前 | 29
| 已接受
已回答
combining text and numeric matrices
I am going to assume, that your predictors matrix is of type 'm x 6 Cell'. temp = randi(3,10,6); predictors = cell(1...
combining text and numeric matrices
I am going to assume, that your predictors matrix is of type 'm x 6 Cell'. temp = randi(3,10,6); predictors = cell(1...
7 years 前 | 1
已回答
How to display numerical data as subscript text in the UIAxes in App Designer when the data has multiple digits?
You can use curley brackets to specify where the sup-/superscript starts and ends. See <https://de.mathworks.com/help/matlab/ref...
How to display numerical data as subscript text in the UIAxes in App Designer when the data has multiple digits?
You can use curley brackets to specify where the sup-/superscript starts and ends. See <https://de.mathworks.com/help/matlab/ref...
7 years 前 | 0
| 已接受
已回答
Plotting in app designer
From what I can tell, your version should be working. I tested the following: The *structure* of the components: app.UIF...
Plotting in app designer
From what I can tell, your version should be working. I tested the following: The *structure* of the components: app.UIF...
7 years 前 | 0
已回答
m-files as function inputs in for loop
As a general description, you have a function you want to call in an .m file: target_fun.m function out = target_fun...
m-files as function inputs in for loop
As a general description, you have a function you want to call in an .m file: target_fun.m function out = target_fun...
7 years 前 | 0