Amir Xz
Followers: 0 Following: 0
Statistics
RANK
2,490
of 295,467
REPUTATION
24
CONTRIBUTIONS
1 Question
10 Answers
ANSWER ACCEPTANCE
100.0%
VOTES RECEIVED
4
RANK
of 20,234
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 153,912
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
Vectorized method to sum missed one values
A=[0, 1, 1, 0, 0, 1, 0, 1]; [~,NonZr] = find(A~=0); A(NonZr) = [NonZr(1),NonZr(2:end)-NonZr(1:end-1)]; Result: A...
6 years ago | 1
| accepted
How to make a polar plot function curve and not rigid?
Steps are so large. theta = 0*pi: 0.01: 2*pi;
6 years ago | 1
Rotate image parallel to the x-axis
A = [50 70]; %[x y] & x,y: pixel number B = [100 30]; %[x y] % find point2 (point with larger x) if A(1)>B(1) P2 ...
6 years ago | 1
| accepted
Calculate values only once in the loop
Use "isempty": I = rand(4,5);r=[]; c=[]; for i=1:10 if isempty(r) || isempty(c) [r,c]=size(I); en...
6 years ago | 0
how to make a square wave as input of transfer function in MATLAB ?
h=2;TimeEnd=20; % inputs t=0:0.01:TimeEnd; x=h/2:2*h:t(end); n=length(x); win=h*rectpuls(t-x(1),h); for i=2:n ...
6 years ago | 0
How to modify the input function to a system?
1. Left Shift: xn(end+1:end+3)=xn(1:3); xn(1:3)=[]; 2. New signal: y = 3*xn + 5*xn(5)^2;
6 years ago | 0
Difference between graythresh and multithresh for one value of threshold.
t1 = multithresh(I,1); t2 = graythresh(I); t1 is a LEVEL, which means is a number between 0 to 255. t2 is same LEVEL th...
6 years ago | 0
How to add a large number of cell.
MatA = cell2mat(A); ArrayA = reshape(MatA',1,12*10^8);
6 years ago | 0
| accepted
Please how can I store values of variable size vectors inside a loop for
" *x( idxX(k) + 1 : idxX((k+1)) )*" is a vector, so it should store in a vector too. Use this one: subH(k,:) = x(...
6 years ago | 1
| accepted
Dear matlab users after I write m file script and run ,it work correctly but when I try open for additional work ,I got different characters .How can open it ? Thank you.
Did you use "clear" at the first line of your code? Or, another probability is: You added a folder into MATLAB path,that you ...
6 years ago | 0
Question
Getting output from Simulink using m-file (link for m-file in simulink)
Hi, I wanna create a link in Simulink, something like a link that exist in "ssc_engine_cooling_system". See image below: <</...
6 years ago | 1 answer | 0