統計
All
Feeds
回答済み
how can i store input characters from user and every time when get new input compare it with already stored values if present already then give error message?
Hi Samia, You can follow two approaches here but the overall steps remain the same. We can initialize an empty data structure t...
how can i store input characters from user and every time when get new input compare it with already stored values if present already then give error message?
Hi Samia, You can follow two approaches here but the overall steps remain the same. We can initialize an empty data structure t...
14日 前 | 0
回答済み
How to fill in initialized zero array with data?
Hi Gary, You can use the size function to get the number of lines in the current file after reading using dlmread. Using the nu...
How to fill in initialized zero array with data?
Hi Gary, You can use the size function to get the number of lines in the current file after reading using dlmread. Using the nu...
14日 前 | 0
回答済み
How to create database to store extracted values?
Hi Elias, Following is a sample function that you can use for creating a '.mat' file of features. You will need to change it ba...
How to create database to store extracted values?
Hi Elias, Following is a sample function that you can use for creating a '.mat' file of features. You will need to change it ba...
14日 前 | 0
回答済み
Array concatenation based on condition.
Hi, Based on my understanding of the given conditions, I think you are on the right track to generate the output. The logic nee...
Array concatenation based on condition.
Hi, Based on my understanding of the given conditions, I think you are on the right track to generate the output. The logic nee...
15日 前 | 0
回答済み
How to put variables into an array based on their values?
Hi Dacoda, The strategy suggested by you should work. You can create a cell array of kids and numeric array for values that rep...
How to put variables into an array based on their values?
Hi Dacoda, The strategy suggested by you should work. You can create a cell array of kids and numeric array for values that rep...
15日 前 | 0
回答済み
Changing values in an array with unknown dimension
Hi Jesper, You can use the ind2sub function to convert a linear index that is a single number representing the position in a fl...
Changing values in an array with unknown dimension
Hi Jesper, You can use the ind2sub function to convert a linear index that is a single number representing the position in a fl...
15日 前 | 0
回答済み
Plot two vectors or arrays sing simulink and XY graph
Hi @HayderMU, Upon searching the documentation, I was able to find this for MATLAB R2019b release: https://www.mathworks.com/he...
Plot two vectors or arrays sing simulink and XY graph
Hi @HayderMU, Upon searching the documentation, I was able to find this for MATLAB R2019b release: https://www.mathworks.com/he...
16日 前 | 0
回答済み
Implementing the (polynomial) "kernel trick" in matlab
Hi Ashwin, You are on the right path to implement the polynomial kernel trick. Here is a sample code that can be further enhanc...
Implementing the (polynomial) "kernel trick" in matlab
Hi Ashwin, You are on the right path to implement the polynomial kernel trick. Here is a sample code that can be further enhanc...
16日 前 | 0
回答済み
Working with arrays in simulink
Hi Subashini, To build a model that reads input from array elements one by one, following steps can be followed: Use a Constan...
Working with arrays in simulink
Hi Subashini, To build a model that reads input from array elements one by one, following steps can be followed: Use a Constan...
16日 前 | 0
回答済み
Vector/matrix sum of forces for mass-spring systems
Hi Martijn, To optimize the computation of forces on nodes in the given mass-spring system, the explicit loop over each node ca...
Vector/matrix sum of forces for mass-spring systems
Hi Martijn, To optimize the computation of forces on nodes in the given mass-spring system, the explicit loop over each node ca...
16日 前 | 0
回答済み
Fastest and Most Memory Efficient Way to Generate Structure from Matrix of Data
Hi @deathtime, The current approach involves iterating through loops to match and fill the data, which can be optimized using M...
Fastest and Most Memory Efficient Way to Generate Structure from Matrix of Data
Hi @deathtime, The current approach involves iterating through loops to match and fill the data, which can be optimized using M...
18日 前 | 0
回答済み
How to resolve linear equation Ax=b using Gaussian Elimination
Hi @Toan, Following is a rough algorithm that can be followed to implement the function removeColRow that removes linear column...
How to resolve linear equation Ax=b using Gaussian Elimination
Hi @Toan, Following is a rough algorithm that can be followed to implement the function removeColRow that removes linear column...
18日 前 | 0
回答済み
Why am I not able to find a solution using the bisection search i have implemented ?
Hi @Kavya, The issue you are encountering with the bisection search implementation might be due to a few potential problems. T...
Why am I not able to find a solution using the bisection search i have implemented ?
Hi @Kavya, The issue you are encountering with the bisection search implementation might be due to a few potential problems. T...
18日 前 | 0
回答済み
Topological sort
Hi @Anon, As mentioned in the wikipedia page for topological sort, the Kahn's algorithm can be used to find the topological sor...
Topological sort
Hi @Anon, As mentioned in the wikipedia page for topological sort, the Kahn's algorithm can be used to find the topological sor...
18日 前 | 0
回答済み
DFS algorithm recursion and function stack
Hi @Nolaan Nolaan, The issue encountered is likely due to the marque and stop variables. In MATLAB, variables are passed by val...
DFS algorithm recursion and function stack
Hi @Nolaan Nolaan, The issue encountered is likely due to the marque and stop variables. In MATLAB, variables are passed by val...
18日 前 | 0
回答済み
Maximum matching in a bipartite graph
Hi @faeze, The Hopcroft-Karp algorithm can be used for finding maximum matching in a bipartite graph. This algorithm takes the ...
Maximum matching in a bipartite graph
Hi @faeze, The Hopcroft-Karp algorithm can be used for finding maximum matching in a bipartite graph. This algorithm takes the ...
23日 前 | 0
回答済み
how to connect edges to nodes in a image using minimum spanning tree approach
Hi Raghu, MATLAB's built-in functions can be used to compute and plot the MST based on the coordinates of the centers of mass a...
how to connect edges to nodes in a image using minimum spanning tree approach
Hi Raghu, MATLAB's built-in functions can be used to compute and plot the MST based on the coordinates of the centers of mass a...
23日 前 | 0
回答済み
Creation of edge set for a specific perfect matching number
Hi Anthony, To select and remove the largest value from the V array in the for loop, you can do the following: [maxValue, maxI...
Creation of edge set for a specific perfect matching number
Hi Anthony, To select and remove the largest value from the V array in the for loop, you can do the following: [maxValue, maxI...
約2ヶ月 前 | 0
回答済み
Generating random planar graphs where nodes have fixed coordinates
Hi Hari, There is no direct function to generate random planar graphs with fixed nodes and changing edge connections. This task...
Generating random planar graphs where nodes have fixed coordinates
Hi Hari, There is no direct function to generate random planar graphs with fixed nodes and changing edge connections. This task...
約2ヶ月 前 | 0
回答済み
Walks and eccentricity, graph theory
Hi, To calculate the number of walks of exactly k steps, you just need to multiply the Adj matrix k times. Once you have the e...
Walks and eccentricity, graph theory
Hi, To calculate the number of walks of exactly k steps, you just need to multiply the Adj matrix k times. Once you have the e...
約2ヶ月 前 | 0
回答済み
how to find all aliques of a node from an adjacency matrix?
Hi @rumin diao, A clique is a collection of vertices in an undirected graph G such that every two different vertices in the cli...
how to find all aliques of a node from an adjacency matrix?
Hi @rumin diao, A clique is a collection of vertices in an undirected graph G such that every two different vertices in the cli...
約2ヶ月 前 | 0
回答済み
How can we construct and visualize hypergraph?
Hi @s malik, As per my knowledge, currently there is no direct way to create hypergraphs in MATLAB. However, you can represent ...
How can we construct and visualize hypergraph?
Hi @s malik, As per my knowledge, currently there is no direct way to create hypergraphs in MATLAB. However, you can represent ...
3ヶ月 前 | 0
回答済み
I have drawn some graphs within the notbook mupad and have found their chromatic numbers. Is it possible to then find their total chromatic numbers?
Hi Olivia, You can use a simple greedy algorithm to find the color of each vertex in MATLAB. Following is a sample code for the...
I have drawn some graphs within the notbook mupad and have found their chromatic numbers. Is it possible to then find their total chromatic numbers?
Hi Olivia, You can use a simple greedy algorithm to find the color of each vertex in MATLAB. Following is a sample code for the...
3ヶ月 前 | 0
回答済み
finding the shortest cycle in a graph
Hi @R yan, You can use the allcycles function on a graph object to find all the cycles in a graph. Once you obtain all the cycl...
finding the shortest cycle in a graph
Hi @R yan, You can use the allcycles function on a graph object to find all the cycles in a graph. Once you obtain all the cycl...
3ヶ月 前 | 0
回答済み
How to build a N-regular graph
Hi @Anelmad Anasli, A N-regular graph is a graph where each node has 'N' neighbors. Following is a MATLAB function that takes N...
How to build a N-regular graph
Hi @Anelmad Anasli, A N-regular graph is a graph where each node has 'N' neighbors. Following is a MATLAB function that takes N...
3ヶ月 前 | 0
回答済み
mencari nilai minimum dari algoritma graph
Hi @Fawwaz, Based on the given function, to find the minimum value in a graph coloring algorithm where the minimum value is gre...
mencari nilai minimum dari algoritma graph
Hi @Fawwaz, Based on the given function, to find the minimum value in a graph coloring algorithm where the minimum value is gre...
3ヶ月 前 | 0
回答済み
Build and visualize a circulant graph
Hi @mazari ahmed, There is no direct function to plot "circulant" graphs in MATLAB. Though you can create a plot from using oth...
Build and visualize a circulant graph
Hi @mazari ahmed, There is no direct function to plot "circulant" graphs in MATLAB. Though you can create a plot from using oth...
3ヶ月 前 | 0
回答済み
How to Simulate Nonlinear Model Discrete Time?
Hi, The ode45 function is used for solving ordinary differential equations (ODEs) and it is typically used for continuous-time ...
How to Simulate Nonlinear Model Discrete Time?
Hi, The ode45 function is used for solving ordinary differential equations (ODEs) and it is typically used for continuous-time ...
4ヶ月 前 | 0
回答済み
What's the difference between a random walk, AR(1) or a white noise process?
Hi, A random walk is a time series model where each current term is the sum of the previous term and a random error. An AR(1) p...
What's the difference between a random walk, AR(1) or a white noise process?
Hi, A random walk is a time series model where each current term is the sum of the previous term and a random error. An AR(1) p...
4ヶ月 前 | 0
回答済み
find the variance of autocorrelation function
Hi Chithralekha, The two pieces of code are not equivalent, and that is why they are producing different results. In first piec...
find the variance of autocorrelation function
Hi Chithralekha, The two pieces of code are not equivalent, and that is why they are producing different results. In first piec...
4ヶ月 前 | 0