Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Want to save in a selected folder
Use exportgraphics or print and specify the full path with the filename.

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
extracting percentages from text
Use readtable

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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 +...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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 = ...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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 =...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
change negative data to zero in one table in matlab
Find Array Elements That Meet your Condition and assign them to be 0.

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
What is the function to use to blacken a region?
patch fill area

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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; ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 1

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 1

| A accepté

Charger plus