Beantwortet
Why these two path strings are different? (manual string vs. pwd + fullfile)
The file separator character for the OS you have must be backslash, as you get the result of the comparison to be 0. Let's take...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Want to save in a selected folder
Use exportgraphics or print and specify the full path with the filename.

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
A problem caused by 'xlim' and 'axis equal'
"So, how can I use xlim([-inf inf]) and axis equal at the same time?" You can not. As I said before, atleast 1 input value to x...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How to calculate the sum of all neighbouring elements in a random matrix
Use conv2 - A = [ 0 0 1 1 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 1 0 1 0 1 1 ...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
Importing open street map data through readgeotable fails
The functionality of reading .OSM files via readgeotable was introduced in R2023b. Reference - https://in.mathworks.com/help/map...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
extracting percentages from text
Use readtable

mehr als 2 Jahre vor | 0

Beantwortet
Index exceeds the number of array elements. Index must not exceed 1.
There was a missing element-wise division sign in the definition of f_prime_j, causing the said variable to be defined as a scal...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How do you search for a number in a cell array containing different length arrays?
in = {[2 5 8 9] [1 2 4 5 7 10] [3 5 6 7 8 9 10] [1 2 3 5 8 9 10] [1 2 4 6 8 9] [1 3 4 5 6 8] [1 2 4] [4 5 7 9] [1 2 5 7 10] [1 2...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Unable to perform assignment because the left and right sides have a different number of elements.
The output of g(....) is a 5x1 numerical array and DX(i) is a 1x1 numerical element. And you can not assign 5x1 numerical array ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How can I get the value of a and b as a real number not as matrix
solve provides the option to generate multiple outputs - syms a b eqns = [2*a^2 + 4*a - 3 - 2*b^2 - 4*b + 3 == 0,a^3 - 4*a +...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
How to find the x value of a function given by points?
Use logical indexing - Find Array Elements That Meet a Condition Also, as you are working with floating point numbers, it would...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Mean of a cell array with different cell sizes?
If the data in the cell array is compatible for concatenation, concatenate them and use mean for the specific dimension - a = ...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
Conversion to cell from double is not possible.
You need to use curly brackets, {} %% Calculate delayed states for multiple delays x_d = cell(length(tau), 1); for k = 1:leng...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How can I merge two arrays in adjacent cells?.
I assume that the x and y data is stored in arrays x_vertices and y_vertices respectively. C = [x_vertices(:) y_vertices(:)] H...

mehr als 2 Jahre vor | 0

Beantwortet
How do I generate executable code from imported data?
You need to add the @(list_of_independent_variables) before the formulae. Flushmatrix = readtable('Spülmatrix2.xlsx','PreserveV...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
A compact way to reduce, or remove, the fractional part (separated by a decimal point) of numbers in a table
Take the floor of the data. LastName = {'Paris';'London'}; Feature1 = [71.4589;69.1432]; Feature2 = [176.3458;163.9082]; T =...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
change negative data to zero in one table in matlab
Find Array Elements That Meet your Condition and assign them to be 0.

mehr als 2 Jahre vor | 0

Beantwortet
Extracting a vlue from a matrix using a neighboring value as a reference
If you want the value corresponding to all occurences of the maximum value in row 1 - %Input data arr = [1 2 4 10 3 10...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Function output variable is unrecognized
eig is a built-in function in MATLAB. And there are many other toolbox functions, with the same name. It's not a good idea to n...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
What is the function to use to blacken a region?
patch fill area

mehr als 2 Jahre vor | 0

Beantwortet
Variable A must be of size [6 6]. It is currently of size [7 7]. Check where the variable is assigned a value.
It seems you have made an off-by-one error - https://en.wikipedia.org/wiki/Off-by-one_error#Fencepost_error Try this - h = 25...

mehr als 2 Jahre vor | 0

Beantwortet
how to represent when I have a process in progress?
"hi, how to display an hourglass? or similarity?" Check out waitbar. Options from FEX include - progressbar, statusbar, text p...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How to index two vectors together
One way is to use arrayfun() but that is just a for loop in disguise. %Bigger data vec_A = 10.*(1:1e5)+1; vec_B = vec_A+3; ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Using integral to define a function
Remove the E from the integral() call, as it is not required. Refer to the documentation of integral to know more about the syn...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Plot a 2D graph with two x axis
Draw a line on the second axes and set its color to none. That shows up the xticks and the xticklabels. There seems to be some ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Extracting data from a .fig file
There are multiple objects in the figure. You need to choose the object(s) for which you want to get the data - open('Comparai...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Sorting pairs into seperate matrices based on whether they are ascending or descending
Firstly, do not use built-in functions as variables (or script) names, like you have done here - diff=diff(pairs(i,:)); Sec...

mehr als 2 Jahre vor | 1

Beantwortet
plot single vector and plot matrix
To get the same result, transpose the array and then plot. Refer to the documentation of plot to understand the behaviour of pl...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
how to do a scatter plot with second x axes
I have modified the code related to the plotting part. The ytick labels look bold because there are two sets of them, one on to...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
Stacked line plot legend color change
As you want to get the legend for individual chart(s) from a stackedplot of multiple tables/timetables, turn the "CollapseLegend...

mehr als 2 Jahre vor | 1

| akzeptiert

Mehr laden