Beantwortet
Opening XLSX file and setting the variable type to double
You never need to use table2array to operate on a table. You can work directly on the table, it's often simpler. If you look at...

mehr als 6 Jahre vor | 1

| akzeptiert

Beantwortet
How to filter out single/double zero's ?
If you have the Image Processing Toolbox, the easiest is: newA = imclose(A, [1 1 1])

mehr als 6 Jahre vor | 0

Beantwortet
submitWithConfiguration not working in matlab R2019b
What you're seeing is a documented change of behaviour in R2019b, regarding poorly written code as is the case here. Matlab no ...

mehr als 6 Jahre vor | 10

Beantwortet
Error using zeros Size inputs must be scalar.
Yes, we have no idea what you meant to do, so can't really tell you how to fix the problem. Currently you're calculating the max...

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
How to load a variable and export and edited version of it into a matrix
So, what doesn't work with your current code? It's difficult to tell you what to change if we don't know what the problem is. O...

mehr als 6 Jahre vor | 1

| akzeptiert

Beantwortet
unique values inside a matrix
I'm not sure what you mean by unique is not working. You haven't explained the reasoning for going from your input to your outpu...

mehr als 6 Jahre vor | 1

Beantwortet
Reading Selected Columns from an Excel Using the "readtable" Option
readtable does not accept disjoint ranges (e.g. 'A50:A10000,C50:C10000') so you don't have a choice but read the B column as wel...

mehr als 6 Jahre vor | 4

| akzeptiert

Beantwortet
How do we find the input arguments required by a handle class constructor?
It sounds like the problem has already been resolved and as Adam said, the easiest is to look at the function definition. If, f...

mehr als 6 Jahre vor | 1

| akzeptiert

Beantwortet
could anyone help me how to group the numbers into sets
As the documentation of mat2cell explain, the dim inputs specify the size of each block along a particular dimension. The sum of...

mehr als 6 Jahre vor | 1

Beantwortet
Switch case on an array
Yes, it's a lot clearer. So, the transition to a char array is a complete red herring. It's totally unnecessary. Using sequenti...

mehr als 6 Jahre vor | 1

| akzeptiert

Beantwortet
So I wanted to split the 1X15 cell to different cells.
If you want to perform group statistics, the simplest is indeed to put everything in just one table: allresults = vertcat(resul...

mehr als 6 Jahre vor | 2

| akzeptiert

Beantwortet
Mathworks Questions Resolved.
Simply click on the Accept this Answer button that should be visible below the answerer's name. (Like you should see below my na...

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
R2019b Mojave does not start
For installation and startup issues, Mathworks support is always available regardless of your license. So I recommend you contac...

mehr als 6 Jahre vor | 1

Beantwortet
Can we use l,k,z as global variables in GUI rather than using x,y,z ?
You shouldn't be using global variables at all. There's always better ways of doing whatever it is you're doing. As for the nam...

mehr als 6 Jahre vor | 2

| akzeptiert

Beantwortet
Can i give mathworks a tip on the development of MATLAB?
You can suggest whatever you want to mathworks via a service request. Whether or not, they act on it is another matter. For you...

mehr als 6 Jahre vor | 2

| akzeptiert

Beantwortet
Check if a set of coordinates are on a line
Probably, the best way is to use polyfit (which does a least square fit) and look at the norm of the residuals. If it's small en...

mehr als 6 Jahre vor | 0

Beantwortet
New serial communication with serialport()
But now, I don't see a way to access the serialport object created in the beginning in other functions You just have to pass th...

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
Getting an error of 'Reference to non-existent field'
The way traj_generator is coded, when t is 0, it returns a structure with only 3 fields: pos, yaw and yawdot (these last two are...

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
bwboundaries : missing coordinates of one of the two borders of my image
The problem has nothing to do with bwboundary. The problem is with you calling plot in a loop without hold on, so each time you ...

mehr als 6 Jahre vor | 0

Beantwortet
vector of integers modification
Possibly: rank = [4, 1, 2, 2, 4]; [~, ~, rank_new] = unique(rank)

mehr als 6 Jahre vor | 2

| akzeptiert

Beantwortet
Converting a date in character format to an actual date recognized by MATLAB
Your allDate = datetime(zeros(1,length(Filename))); will only work if length(Filename) is 3 or 6. Otherwise you'll get an err...

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
Using 'assignin' to assign value to variable 'max'
First and foremost, you shouldn't be using assignin and its friends (evalin, etc.). There's always better ways to do whatever yo...

mehr als 6 Jahre vor | 1

| akzeptiert

Beantwortet
Getting an 'Array indices must be positive integers or logical values' error
You should read the comments at the top of the function and understand them. In particular, the function must be initialised fi...

mehr als 6 Jahre vor | 1

| akzeptiert

Beantwortet
Why does jsonencode parser does not remove exponential notations when format longG is used?
The straightforward answer to your question is simple. format has nothing to do with jsonencode, it only affects display at the ...

mehr als 6 Jahre vor | 2

| akzeptiert

Beantwortet
Multiple 'EndOfLine' readtable
This has nothing to do with the EndOfLine character (which is typically not rendered when viewed in a text viewer). As the erro...

mehr als 6 Jahre vor | 2

Beantwortet
Unique rows of 2 cells with 2 columns each.
merged = [new; old]; %simpler way to write vertcat(new, old) [~, row] = unique(merged(:, 1)); %get row index of unique values...

mehr als 6 Jahre vor | 1

Beantwortet
One measure greater than another?
Note than an even simpler way to extract data from a table is with dot indexing: Wanted = T.SFStartFreqHzoffundamental; %equiv...

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
Please explain the following line of code
What couldn't you run the code and see what it does? Your line of code is just a convoluted of doing: o(1:2:end) = -32 which ...

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
Rearrange a given array
This would work as long as V has a multiple of 10 elements: %demo data V = [ 19 15 11 2 16 3 1 18 14 3 18 19 20 1 13 4 14 3 1 ...

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
Matlab displays truncated output with elipses. How do I fix this?
As far as I can tell, this is and has always been normal behaviour in the live script editor. Same as with normal scripts, you...

mehr als 6 Jahre vor | 1

| akzeptiert

Mehr laden