Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
2 answers
78 views

Saving data to ASCII file

I'm running an app written by some scientists. App is made to fit an experimental data to the model of the technique employed. Results are few figures. As the app doesn't allow you to save the figures ...
Dario Mirić's user avatar
0 votes
0 answers
83 views

EEG PSD Difference in MNE Python and MATLAB graphs

I'm trying to replicate something in python that a peer did in MATLAB which is plot the PSD for a mouse eeg. However, when logging and then plotting the data the exact same way in using the welch ...
Andrew Xue's user avatar
0 votes
0 answers
56 views

How to aproximate a power demand code to reality?

I've written a code for the usage of some cooking appliances, that will run at breakfast, lunch and dinner time for a 5 million population (1 million households). The aim is to plot the power demand ...
Adriceb_02's user avatar
0 votes
0 answers
75 views

How to build a graph of the solution of a second-order differential equation in MATLAB

I need to build a graph for this second order differential equation in MatLab: φ(t) + (d²φ(t)/dt²) - ((d²φ(t)/dt²) * m * sin(pi) * a) = m * g * sin(pi) * a. let a = v * t, v = 1, m = 0.1. 0 < t <...
Muhab Joumaa's user avatar
0 votes
0 answers
69 views

Signs of Matlab and Numpy Graph Fourier Transform Matrix are Different

I would like to ask why I see the same numerical results but with different signs for the same demo data. I understand that the signs are arbitrary, but I'm using the transpose of this matrix in later ...
Michael Paglia's user avatar
0 votes
3 answers
134 views

How can I generate 50 samples per period for an uneven sin curve?

I have a figure of an uneven sin curve where the label x is "time" and amplitude is 1. I cannot figure out the function as it is irregular. I need to generate 40 samples per second on Matlab....
Silvy's user avatar
  • 1
0 votes
1 answer
48 views

Simplify the graph keeping connectivity

I have some fully connected graph in Matlab. I want to remove small edges iteratively. If removing of some edge will destroy the graph connectivity, then I would like to keep this edge and try to ...
zlon's user avatar
  • 834
0 votes
0 answers
54 views

Adjacency Matrix for Undirected Graph (Collaboration network of Arxiv General Relativity)

I want to use MATLAB to create the adjacency matrix for the following undirected graph data in this link. When I apply "graph" function, I get the error that the matrix has duplicate edges. ...
AMGEO's user avatar
  • 13
0 votes
1 answer
47 views

Plot Cylindirical Explosion problem across radial Line

The second issue is that when I introduce my collected data to the plot I get a massive mess of a line that is unreadable, the data is correct and should plot a similar line above or below the ...
Xray25's user avatar
  • 129
0 votes
1 answer
68 views

MatLab graph figure from file

I don't know how to plot a figure of a graph from a file in MatLab. I've tryed this: A=readcell("graph4.txt"); G=graph(A(:,1),A(:,2)); plot(G) ------------------------------- Sample of ....
Aoki's user avatar
  • 1
0 votes
0 answers
153 views

Linear Congruential generator graph

I implemented a simple code for a linear congruential generator clear all; clc % Input m = 59; % module a = 17; % multiplier c = 43; % increase X0 = 27; % seed n = 100;...
SimoPape's user avatar
0 votes
0 answers
73 views

How to plot contour plot in Matlab

How to plot like this in MATLAB I have tried this, but didn't find desired result X = 1.2:0.2:3; Y = 3:0.2:4; [x, y] = meshgrid(X, Y); z = x.*y; contourf(x, y, z, 'ShowText', 'on'); colorbar title ...
Muhammad Azeem's user avatar
1 vote
2 answers
176 views

Plotting the basic reproduction number against two parameters

I am trying to replicate the following graph from the paper, https://pubmed.ncbi.nlm.nih.gov/32834653/. Given below are the parameter values and the formula for the basic reproductive number. beta_s =...
Hew123's user avatar
  • 63
0 votes
0 answers
35 views

How can I create a 4-D plot with points with different sizes for the fourth dimension? Python or Matlab [duplicate]

I would like to create a 4-D plot with points with different sizes for the fourth dimension. The first three dimensions are years, regions, and types of land covers. The fourth dimension contains the ...
Yowich's user avatar
  • 1
3 votes
2 answers
88 views

Finding common elements from two columns in symmetric adjacency matrix

I have a sparse symmetric matrix which represents authors of some book. Elements Ai,j and Aj,i are both equal to one if the people associated with indices i and j are coauthors and equal to zero ...
Bojan Lazarevski's user avatar

15 30 50 per page
1
2 3 4 5
49