Community Profile

photo

Nadatimuj


Last seen: 7 days ago Active since 2021

Statistics

  • Thankful Level 3
  • First Answer
  • First Review

View badges

Content Feed

View by

Question


Why is pause function so inaccurate on Windows?
tic; for k =1:2000, pause(0.0014); end toc This code takes about 2.89 seconds on Linux machine but 30 seconds on windows. Te...

1 year ago | 2 answers | 2

2

answers

Question


How to resolve error calling Python from MATLAB?
I have both MATLAB 2022a and 2022b on the same machine. MATLAB 2022a always called python without any issue. But now I installed...

1 year ago | 1 answer | 0

1

answer

Question


Any function to get adjacency matrix of 2D M by N lattice?
Is there any function in matlab to generate adjacency matrix, A of 2D M by N lattice? For example, for M = 4, N = 3, A = [0...

1 year ago | 2 answers | 0

2

answers

Question


Is there any other function faster than sum(A,2) to get the sum of all rows?
a=zeros(6750); h=zeros(6750,1); tic;k=h-sum(a,2); toc Is there any faster way than to use sum(A,2) to get the sums of the row...

2 years ago | 2 answers | 0

2

answers

Question


How can I find all n-bit semiprime numbers?
I know about the primes function but I need to get a list of all n-bit semiprime numbers and all the factors. Thanks.

2 years ago | 1 answer | 0

1

answer

Question


How to get all combinations of PRODUCTS between two array elements?
Hi, Let's say I have two arrays. A =[5 6 8 9 7]; B= [3 4 5]; I need all combinations of elements of A* elements of B. ...

2 years ago | 2 answers | 0

2

answers

Question


how to use pyrunfile Python inside a .m file?
I am trying to call a python script from MATLAB. It looks like pyrunfile("main.py") command works well in the command window but...

2 years ago | 0 answers | 0

0

answers

Question


Can anyone please vectorize the code I have?
Input J_org = 0 2 0 1 0 -1 -1 2 0 0 -1 -1 3 0 0 0 0 ...

2 years ago | 1 answer | 0

1

answer

Question


Can anyone help me optimize the if statements in For loops to make the code faster?
function [triu_adjacency,J_indices] = get_triu_adjacency(J_org, max_num_neighbors) % J_org =[ 0 -1 -1 1 2 %...

2 years ago | 1 answer | 0

1

answer

Question


Can we modify a PCIe AXI Master IP that is unavailable to make it work?
Hi there, I have been using MATLAB PCIe as a AXI master for a long time on the VCU118 board. Now we got the newer and bigger ...

2 years ago | 0 answers | 0

0

answers

Question


How to distribute data as Gaussian?
Let's say I have 800 colors. I want to distribute it between 10 people. If I distribute it unformly, I would simply give 80 colo...

2 years ago | 2 answers | 0

2

answers

Question


How do I do unsigned comparsion between two n-bit vectors having 1s and 0s?
x = '1000000100000000000000000000000000000000000001010110001111000000' y = '00000000000001010110001111000000000000000000010...

2 years ago | 1 answer | 0

1

answer

Question


How do I do unsigned comparsion between two vectors having 1s and 0s?
x = '10000001000000000000000000000000' y = '00000000000001010110001111000000' Let's say x is the binary representation of ...

2 years ago | 1 answer | 0

1

answer

Question


How to increase MATLAB corrplot co-efficient precision ?
How to increase the font size of correlation coefficients in MATLAB corrplot? Also, how to increase the precision of co-efficien...

2 years ago | 1 answer | 0

1

answer

Question


How can I reshape a square matrix to a rectangular matrix based on its adjacency list?
How can I reshape a square matrix to a rectangular matrix based on its adjacency list? Let's say I have the following 14x14 matr...

2 years ago | 2 answers | 0

2

answers

Question


How to draw a Bethe lattice with a given number of nodes N and coordination number z?
How to draw a Bethe lattice with a given number of nodes N and coordination number (number of connections), z? Reference: https...

2 years ago | 1 answer | 0

1

answer

Question


How do I define the y axis of imagesc as integers and not fractions?
I have 2x1e7 data but imagesc makes the y axis range from 0.5 to 2.5. How can I make it 0 to 2? And what is the reason the defau...

2 years ago | 1 answer | 0

1

answer

Question


How to extract positive, negative and fraction numbers from string?
How do I extract numbers from a string where the number can be positive, negative or even fractions? I tried the following but ...

2 years ago | 2 answers | 0

2

answers

Question


Is there a way to convert binary with Don't care to corresponding decimal values in MATLAB?
Is there a way to express don't care binary in MATLAB and get the decimal value? For example, 011x can be either 6 or 7 since th...

2 years ago | 1 answer | 0

1

answer

Question


How to improve sparse array indexed assignment in MATLAB?
Hi, how can I improve indexed assignment to a sparse matrix? Please refer to line 29 and 31 of the attached code that is simply ...

2 years ago | 2 answers | 0

2

answers

Question


Any built-in graph coloring algorithm in MATLAB?
Please implement an efficient graph coloring algorithm. For example, DSATUR. It's surprising that MATLAB doesn't have a built-in...

2 years ago | 1 answer | 0

1

answer

Question


King’s Graph and Grid Graph
Can anyone give me a code or function to generate King’s Graph and Grid Graph of any size in Matlab? Mainly, I need the adjacenc...

2 years ago | 1 answer | 0

1

answer

Question


Can anyone share a working graph coloring code? DSATUR or something else?
I am looking for a graph coling code, DSATUR or something else.

2 years ago | 1 answer | 0

1

answer

Question


How to add a second x-axis on top in plot?
I think something similar is asked in the forum before and there is a documentation on how to add second a y-axis. But I am not ...

2 years ago | 2 answers | 0

2

answers

Question


How to find graph density in MATLAB for a given graph G?
I want to find the density of a graph in matlab. Is there any function to find that? Thanks.

2 years ago | 1 answer | 0

1

answer

Question


Keep track of Matrix row indices after deleting some rows
Suppose, I have a 10x10 Martix A= magic(10). Then I delete some rows from it as A([3 5 6],:)=[]. and some columns as A(:,[3 5 ...

3 years ago | 1 answer | 0

1

answer

Answered
Timed out on waiting for AXI write response.
@Praneet Kala My issue is solved here: https://forums.xilinx.com/t5/Xilinx-Evaluation-Boards/Why-is-output-of-clock-wizard-stuck...

3 years ago | 0

Answered
Matlab AXI master import hdlverifier::*;does not work
Still doesn't work in post-synthesis and post implementation simulation.

3 years ago | 0

Question


Matlab AXI master import hdlverifier::*;does not work
I was trying to implement this: https://www.mathworks.com/help/supportpkg/xilinxfpgaboards/ug/access-fpga-external-memory-using...

3 years ago | 1 answer | 2

1

answer

Question


Is there a way to convert verilog (.v) codes to Simulink model?
How to convert multuple verilog files into Simulink model without getting any clock inference error?

3 years ago | 1 answer | 0

1

answer

Load more