
Python, C, MATLAB
Statistics
RANK
277
of 262.805
REPUTATION
282
CONTRIBUTIONS
2 Questions
88 Answers
ANSWER ACCEPTANCE
100.0%
VOTES RECEIVED
38
RANK
of 17.989
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Content Feed
How to sum two gaussian curve fits (cfit) ?
You could evaluate the fits and add them, though they would no longer be cfits. x = linspace(20,35); F1pts = feval(F1,x); F2p...
etwa 2 Monate ago | 1
| accepted
how to work with text files?
fopen is for low-level file operations you may not need. Perhaps try data = importdata('stud_ex.txt') Which will give you a s...
etwa 2 Monate ago | 0
| accepted
why is this Matlab Code faster than the C++ code below? I want to understand what Matlab internally does better and faster than C++
I see an efficiency in primes.counter = primes.counter - 1; Matlab uses LAPACK for matrix/vector operations, which I think sho...
etwa 2 Monate ago | 1
| accepted
Changing numbers in dataset
For only five values, I think it's pretty efficient to do a direct replacement: ds_new = zeros(size(dataset)) ds_new(dataset =...
2 Monate ago | 1
Where is the error in my code?
The colon operator has a default spacing of 1. r = 0:0.07 gives: 0, % next value... 1 > 0.07 % so r = [0] Use an intermedi...
2 Monate ago | 0
Issues updating vector inside a for loop
When find doesn't find any values > 0.999, it returns an empty vector, with a size of 0x1. Furthermore, max returns an empty vec...
3 Monate ago | 0
| accepted
Increasing Edge Lines in a Surface Plot
sf = fit([x,u],z,'poly15','normalize','on'); xpts = linspace(min(x),max(x),100); upts = linspace(min(u),max(u),100); [xx, uu]...
3 Monate ago | 0
| accepted
Question
Is there a good reason for choosing assert() over an if condition with an error?
I want to make sure a condition is valid, so I write a quick test for it with a boolean output. Does it matter whether I put the...
3 Monate ago | 1 answer | 1
1
answerHow to plot a .txt file when the data is in blocks and each data is separated by space
Wow, that is an inconvenient format. One option is to use the data import tool--right-click on the text file in matlab and "imp...
4 Monate ago | 0
| accepted
How to append an image to a plot curve
You should be able to use a tiled layout. circuit = imread(which('RC_Charge_Circuit_Voltage.png')); figure tiledlayout(2,1)...
4 Monate ago | 1
| accepted
Add row numbers to side of table in MATLAB
rownums = 1:size(T,1); T.Properties.RowNames = string(rownums);
4 Monate ago | 1
Matching multiple file names
You'll have to fill in some of the blanks because I don't know how you're opening files, but to find the corresponding filenames...
4 Monate ago | 0
| accepted
Quaternions with symbolic elements
The error says it all. It looks like symbolic variables aren't supported for quaternions. You might try a third-party toolbox: ...
6 Monate ago | 0
| accepted
Why am I getting an error 'Execution of script cosamp as a function is not supported'
Using the function provided by @Elghandouri Mohammed and the original script, the error I get is: Error using _*_ Incorrect d...
7 Monate ago | 0
Meshgrid or other structure?
Axis_A = (-96:8:96)/2; mgrid = Axis_A+Axis_A'; would give you that matrix. As would [x,y] = meshgrid(Axis_A); mgrid = x+y;
7 Monate ago | 0
How do I convert tall array duration time vector to HH:mm:ss for merging with tall array datetime vector ?
dates = tall(repmat(datetime(date),3,1)) times = tall(repmat(duration(15,12,1,345,'Format','hh:mm:ss.SSS'),3,1)) times.Format ...
7 Monate ago | 0
| accepted
why the plot doesn't work ,in the code i'm finding the estimation value of the phase using montecarlo simulation
since length(SNR) is 1, you are running one loop iteration and generating one point. plot() doesn't show one point unless you sp...
7 Monate ago | 0
Graphical Draw Path Segments
Perhaps a "bezier toolbox" with an interactive mode would be useful: https://www.mathworks.com/matlabcentral/fileexchange/69302...
8 Monate ago | 0
| accepted
How to produce results of script in table
Your variables are all updated in place, overwriting the previous state. You could make an array out of each variable, and upda...
8 Monate ago | 0
| accepted
Imresize3 not resizing in z direction?
The second method should work. Are you sure you used imresize3() and not imresize() for that? For the first method, input all t...
8 Monate ago | 0
| accepted
Differential Operator in Matlab in 1 Dimension
I'm not a math major so there's probably something technically wrong about this statement, but "d/dx" is essentially "dy/dx", re...
8 Monate ago | 1
Find the number of red marks in box plot
One method, which may not necessarily correlate to a boxplot in all situations (but probably works for the default boxplot), is ...
8 Monate ago | 0
| accepted
geting matlab installer to start on linux
From a comment deep in the thread (here), and from reading your symptoms, what typically works with this version of Ubuntu is: ...
9 Monate ago | 2
| accepted
Converting datenums to get time durations
I don't see where WaveHeight is declared, but you can calculate a duration by subtracting datetimes. ThreshDate = datetime('now...
9 Monate ago | 0
How can I identify the amplitude peaks from an FFT?
You can use findpeaks, probably with some additional parameters. For instance, if the plotted signal is P: Z = findpeaks(P,'Min...
9 Monate ago | 0
| accepted
IF Statement Help?
This statement would flow like this, for a 30-degree angle (in pseudocode): if CurrentPosition < 45 % True, so... wri...
9 Monate ago | 0
Help with a tiny project ( building a graph)
If I understand correctly, you only wish to plot I as a function of x. I have modified your function slightly (at the end of t...
9 Monate ago | 1
| accepted
Question
Why are alternative forms for "dbstop in file at location if expression" not documented?
This question is prompted by another question here. It was fairly easy to guess that dbstop('file','10') would set a breakpoi...
9 Monate ago | 1 answer | 1
1
answerUse variables in dbstop
dbstop(file,num2str(line)) Usually, functions that have input forms like dbstop has can also be called like a normal function...
9 Monate ago | 1
| accepted
A better way to do antidiagonal matrix vectorization?
I believe this works for tall arrays and square arrays. I haven't yet figured out how to compensate if N>M. It's not as fast as...
9 Monate ago | 1