답변 있음
How to add a noise in my Input graph?
this code gives a zero mean noise with a sampling rate equal to your signal. just calculate it's amplitude by knowing variance. ...

3년 초과 전 | 0

| 수락됨

답변 있음
Simulink animation for BLDC motors
I didn't see anything about animate in that video. however I propose after running the simulation, save your data including time...

3년 초과 전 | 1

| 수락됨

답변 있음
Computing voltage and current amplitude and average power
if they are 3-phase, use clarke transformation. it will give you the amplitude and phase the dividing by sqrt(2) yield the rms v...

3년 초과 전 | 0

| 수락됨

답변 있음
Invalid setting for input port dimensions of 'without_statcom/Asynchronous Machine pu Units/Measurements/Demux1'. The dimensions are being set to [-1]. This is not valid because the total number of input and output elements are not the same
hello. you need to set number of elments in Demux1 correctly. when you run simulation look at the input signal it says for examp...

3년 초과 전 | 0

답변 있음
plot error variables not same length
try this if could resolve the problem. I have selected those elemnts of "y_fft" corresponding to "f" vector. plot(f, y_fft(1:le...

3년 초과 전 | 0

| 수락됨

답변 있음
i have a syntax error in u(3)-u(4)(exp((u(2)u(1)+u(6))))/(u(5))-1) what the error ?
you didn't have product sign"*". also there were bunch of incorrect parantheis. copy and paste should work. u(3)-u(4)*(exp(u(2)...

3년 초과 전 | 0

답변 있음
Image processing: transition between two halves of an image
you must define the dim factor in a way that is 1.between 0 and 1, 2. it has smooth transition. for example here in order t...

3년 초과 전 | 0

| 수락됨

답변 있음
vectors problem, como podria unir los vectores
hola, es esto lo que esperas? A = [1 0 0 0 0 1 1 0 1 0 0 1 1 1 1 0 0 0 1 0 1 0 0]; B = [2 0 2 2 2 0 2 0 2 2 0 0 2 0 2 2 0 0 0 ...

3년 초과 전 | 0

| 수락됨

답변 있음
ASSISTANCE ON RUNNING RANDOM VARIABLES IN A FUNCTION
I assumed that "y" must not be a constant since you have dy/dt. therefore I made it an input for the function % define your con...

3년 초과 전 | 0

| 수락됨

답변 있음
Calculate mean of a matrix columnwise if a condition is met
A = [10 10 10;10 5 5;10 5 5] b = 10 C = b - A C(A>=b) = nan % replace all data out of specified range by nan mean(C,'omitnan...

3년 초과 전 | 0

| 수락됨

답변 있음
Spectral Entropy vs Frequency
using fft (Fast Fourier Transform). I'll give you an example. suppose you have a discrete signal called "x[n]" that has been sa...

3년 초과 전 | 0

답변 있음
Sending/calling every row of matrix to another function from current function
[N,~] = size(TruncatedSubstring); % N = number of rows for i=1:N substring = TruncatedSubstring(i,:) Result(i,:) = ...

3년 초과 전 | 0

| 수락됨

답변 있음
textscan format string for hours:minutes
this works for me. I'm using 2016a. txt = '00:01'; result = textscan(txt, '%{mm:ss}D') result = [00:01] if you can't d...

3년 초과 전 | 0

| 수락됨

답변 있음
Solving system of equations
you must first define the unknowns in your system of equations. it seems you have 12 equations and therefore you must have 12 un...

3년 초과 전 | 1

답변 있음
Importing a signed integer value with a space
if your data are all positive, then you can ignore plus sign. and your data is not integer use single or double precion. here's ...

3년 초과 전 | 0

| 수락됨

답변 있음
Smooth data to get the best approximation.
I used curve fitting app you can workaround and change settings to get your result.

3년 초과 전 | 0

| 수락됨

답변 있음
Directly converting uint16 image sequence to .avi video file
it seems the function does not support uint16, but it accepts images of type single and double precision. convert your image fra...

3년 초과 전 | 0

| 수락됨

답변 있음
How to generate random smooth 2D closed curves/shapes
If you are familiar with bezier curve, you can do it easily by setting random values for points coordinates.

3년 초과 전 | 1

답변 있음
How to import part of the data from multiple .txt files into the MATLAB workspace as a variable
fileID = fopen('685_FM01_HF_7-21-2020.txt'); % open first text file c1 = textscan(fileID,'%f %f','Delimiter',','); % scan it ...

3년 초과 전 | 0

| 수락됨

답변 있음
Plotting 3D grating
I think this is what you're looking for x = [1 2 2 3 3 4 4 5 5 6]; z = [0 0 1 1 0 0 1 1 0 0]; y = [1 4]; [X,Y] = meshgrid(x,...

3년 초과 전 | 0

| 수락됨

답변 있음
Models based on singular value decomposion
load your dataset from your excel file using this command: "A = csvread(filename)". then you can do anything and ofcourse matl...

3년 초과 전 | 0

| 수락됨

답변 있음
Fading/shading an image
A = imread('lena.bmp'); % read rgb image named 'lena.bmo' figure(1);imshow(A) % show the original image in figure1 dim = l...

3년 초과 전 | 0

| 수락됨

답변 있음
How to determine the two closest values to a threshold value
%% nearest value considerin it is bigger or smaller than threshold m1 = min(y(y>0.9)) % nearest value after threshold m2 = max...

3년 초과 전 | 2

| 수락됨

답변 있음
How to copy cell data to a matrix?
the problem is with the date/time format which contains ":" and "-'. if you need matrix you can simply avoid these. c=''; file...

3년 초과 전 | 0

| 수락됨

답변 있음
How to get a solid circle encircled by another circle and solid circle encircled by a square
x = 1; y =2; figure(1) plot(x,y,'o','MarkerSize',20) hold on plot(x,y,'o','MarkerFaceColor', 'k') figure(2) plot(x,y,'s'...

3년 초과 전 | 0

| 수락됨

답변 있음
atan2(0,0) is not undefined (NaN)
it is not a bug. although in analytic math it is undefined, the trigonometric functions are usually calculated by their taylor s...

3년 초과 전 | 0

답변 있음
for loop for matrix
x = [1, 2, 5] y = [0.1, 0.5, 10] z = [10 20; 30 40] X = repmat(x,[4 1]) Y = repmat(y,[4 1]) Z = repmat(z(:),[1 3]...

3년 초과 전 | 1

답변 있음
Extracting matrix from mat file
I assume you have an "x" and a "y" rectangular grid point coordinates, and "A" contains "f(x,y)" data. in this case "x" is a row...

3년 초과 전 | 0

| 수락됨

답변 있음
y1=(t1==0)
if "t1" is a vector like this: t1 = [-2 -1 0 +1 +2] then "t1==0" is a vector of same size which replaces any non-zero value by...

3년 초과 전 | 0

답변 있음
Add values to the i-th position of a table/double
if you are trying to insert xsim1 between x(i) and x(i+1) without any data loss, write this code: x = [x(1:i), xsim, x(i+1:end)...

3년 초과 전 | 0

| 수락됨

더 보기