
Askic V
Statistics
RANK
224
of 275.899
REPUTAZIONE
388
CONTRIBUTI
21 Domande
170 Risposte
ACCETTAZIONE DELLE RISPOSTE
80.95%
VOTI RICEVUTI
44
RANK
of 125.674
CONTRIBUTI
0 Problemi
0 Soluzioni
PUNTEGGIO
0
NUMERO DI BADGE
0
CONTRIBUTI
0 Post
CONTRIBUTI
0 Pubblico Canali
VALUTAZIONE MEDIA
CONTRIBUTI
0 Punti principali
NUMERO MEDIO DI LIKE
Content Feed
Why do we get different results here?
@Sadiq Akbar I'm puzzled too. In general, the results are not correct event sometimes are. For example, the result is wrong for...
12 giorni fa | 0
How to express this equation to convert y values to a new vector and plot as a function of x?
websave('test.xlsx','https://www.mathworks.com/matlabcentral/answers/uploaded_files/1321170/test.xlsx'); data = xlsread('test...
16 giorni fa | 0
Solving for Variables contained an interval
fun = @(x) (sin(x) .* (2.* cos(x) - 1)) ./ (1 + 2 .* cos(x)); % function x0 = [0.1 2]; % initial interval x = fzero(fun,x0) ...
16 giorni fa | 1
Why do we get different results here?
Can you try with the following ByAskic.m function: function e = ByAskic(b,u) % u = [10 20 30 40];b = u; N = 10;%6; % Tx anten...
17 giorni fa | 0
MATLAB Newton Raphson method with array - Stephan problem
Is this what you wanted to achieve? clear clc close all a0 = -0.00401; a1 = 1.18669; a2 = -0.14559; a3 = -0.33443; a4 = ...
18 giorni fa | 0
| accettato
How to compute the AUC (Area Under Curve)?
I think this would be a correct way to do so, but I'm not 100% sure. It seems correct from the ROC diagrams: [x,t] = iris_datas...
18 giorni fa | 1
| accettato
How to use rlocfind in root locus.
You could start with this: help tf help rlocfind
19 giorni fa | 0
| accettato
How do I preallocate for speed in the following code?
The most basic approach is given here: clc clear N = 9; S = 18.1; AR = 7; lambda = 0.8; ...
20 giorni fa | 0
What is the difference between Step size and Sample Time ?
According to Matlab's documentation, The sample time of a block is a parameter that indicates when, during simulation, the bloc...
20 giorni fa | 0
Is it possible numerical problem ?
This is called a round-off error caused by floating point arithmetic. Please read this (it is for Python, but equally applicabl...
20 giorni fa | 0
ploting electric field versud time
This is how can you read the contents of the file into variables. data_file = websave('phi_theta.txt','https://www.mathworks.co...
20 giorni fa | 0
Integral of matrix determinant
I would do it symbolically: syms x f = det([1,x;0,2]); Q = int(f,0,1)
21 giorni fa | 0
create a shuffleable datastore
A different approach would be to read csv file in a table and create datastore from the table. this datastore issubsetable and ...
21 giorni fa | 0
| accettato
Absurd result using 'integral2' with non-"centered" functions
@Torsten already answered, please keep in mind that integral2 still performs numerical integration. have a look at this: clear...
21 giorni fa | 1
Converting string to integer - indexing and multiple trials
If you look into your data in Matlab, you will see that CodeTimes is actually an array of doubles and not strings: cc = load (w...
21 giorni fa | 0
| accettato
How do I properly use the "while", "for", "loop" command in this problem?
A = [71.213; 74.499; 79.175; 54.163; 83.008; 52.615]; B = length(A); %size of column (number of elements) %H = A(i); %Variable...
21 giorni fa | 0
Legends in Bode plots do not support subscripts
g1=tf([1 0],[5 1]); bode(g1) title('\Gamma_h vs \omega') h = legend('$\Gamma\_h$','fontsize', 12); set(h, 'Interpreter', '...
21 giorni fa | 0
An unexpected discrepancy between xcorr, xcov and autocorr
When in doubt always read the documentation. doc xcov Matlab functions are very good documented. For example, you can read: x...
21 giorni fa | 0
Why I couldn't plot this graph f=(@(x,y) (x.^2)+(x*y)+(y.^2)<=68200.^2/3);
And if you really insist on 68200^2/3, then this code will provide output f=@(x,y) x.^2+x.*y+y.^2-68200^2/3; fimplicit(f, 'b'...
23 giorni fa | 0
Can I make this line of code smaller?
XBest=[2, 3, 4]; XBest(isempty(XBest)) = 1e8; XBest XAest = []; XAest(isempty(XAest)) = 1e8; XAest
24 giorni fa | 1
| accettato
Why the 2nd code does not behave like the 1st code?
This is how I would modified the code to execute for any M r N dimensions: clear clc u = [10 20 30 40]; b = u * (1+0.5*randn...
24 giorni fa | 1
| accettato
Unable to perform assignment because brace indexing is not supported for variables of this type
You need to provide more context. For example, this is OK. run = cell(10,1); R = 244:300; Y = 1:300; run{1} = Y(1:R(1)) ru...
26 giorni fa | 0
How to get subset of data from given thresholds?
Did you try this approach? DNS = dat(:,9); NZE = dat(:,10); PER = dat(:,11); % 1. sub = dat(NZE>0.25,:); %2. sub = da...
27 giorni fa | 0
| accettato
How to read a specially structured data file with different structures
I would suggest the follwoing solution: A = readtable('test.5p', 'ReadVariableNames', false, 'FileType', 'text'); nr_rows = si...
28 giorni fa | 1
| accettato
Why the 2nd code does not behave like the 1st code?
It is because in the function "myfunAskMathworks.m" you have function handles defined. So, you are sending the function handle a...
28 giorni fa | 1
How to read a specially structured data file
I would also like to suggest my naive and inefficient approach: A = dlmread('testfile5p.txt'); nr_rows = size(A,1); A2 = zero...
28 giorni fa | 1
how to plot a mean line in a plot
Perhaps, you can use this code: plot(t1,x.*t1);
28 giorni fa | 1
Hi! How I can extract specific data
Hello Aknur, This example code will perform task you specified. % code which will take exactly data where the last three % ...
28 giorni fa | 0
| accettato
Solving a system of equations with dependent variables symbolically
syms a b c d x z y s sol = solve([y==a*b-c,z==d*a+b,x==c*a+b,s==c*b-a],[a,b,c,d],'Real',true) sol.a, sol.b,sol.c, sol.d
29 giorni fa | 0
| accettato
I would like to count the number of peaks of a signal.
t = 0:0.01:2; y = sin(20*t); [z, ind] = findpeaks(y); plot(t,y) hold on plot(t(ind), z, 'o') number_cylces = numel(diff(...
30 giorni fa | 1