Community Profile

photo

Amir Xz


Last seen: más de 2 años hace Con actividad desde 2018

Estadísticas

  • Knowledgeable Level 2
  • First Answer
  • Thankful Level 1

Ver insignias

Content Feed

Ver por

Respondida
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...

más de 5 años hace | 1

| aceptada

Respondida
How to make a polar plot function curve and not rigid?
Steps are so large. theta = 0*pi: 0.01: 2*pi;

más de 5 años hace | 1

Respondida
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 ...

más de 5 años hace | 1

| aceptada

Respondida
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...

más de 5 años hace | 0

Respondida
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 ...

más de 5 años hace | 0

Respondida
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;

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 0

Respondida
How to add a large number of cell.
MatA = cell2mat(A); ArrayA = reshape(MatA',1,12*10^8);

más de 5 años hace | 0

| aceptada

Respondida
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(...

más de 5 años hace | 1

| aceptada

Respondida
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 ...

más de 5 años hace | 0

Pregunta


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: <</...

más de 5 años hace | 1 respuesta | 0

1

respuesta