All Questions
724 questions
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 ...
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 ...
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 ...
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 <...
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 ...
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....
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 ...
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. ...
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 ...
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 ....
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;...
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 ...
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 =...
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 ...
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 ...