Réponse apportée
hi i am trying to solve this two equations (p,Q) TO GET THE VOLTAGE AND ANGLE (V,THETA)
To get the solution values, use these commands: Solution = solve(p2==15, q2==5, v2, theta); v2 = Solution.v2 theta = Solution...

environ 3 ans il y a | 0

Réponse apportée
Edit envelope data by mouse
Have you read this DOC? envelope() WHat about this DOC2? hilbert()

environ 3 ans il y a | 0

Réponse apportée
How to remove specified part in image and count number of objects in the image
See this solution post: https://www.mathworks.com/matlabcentral/answers/486087-remove-specific-objects-from-an-image

environ 3 ans il y a | 0

Réponse apportée
may i get command
There are a few builtin fcn in matlab to solve such ODEs. (1) Symbolic Solution -see DOC: % Symbolic syms x(t) y(t) z(t) p k ...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
How to change the Xticket of a figure?
Use xtickangle(), eg: A = 5:5:25; B = {'A1=5', 'A2=10', 'A3=15', 'A4=20', 'A5=25'}; figure(1) bar(1:5, A, 'facecolor', 'm');...

environ 3 ans il y a | 0

Réponse apportée
Array Creation in simulink with size value from a simulink block
One of the possible options is to use the [eye] and extract diagonal blocks - see attached simple Simulink model. The size of th...

environ 3 ans il y a | 0

Réponse apportée
Sort elements of Array by given condition
load('vector.mat') XR1 = [xr;0]; XR2 = [0;xr]; IND = (XR1-XR2)>0; ii = 1; S = 0; while S~=68 S(ii+1) = S(ii)+IND(ii);...

environ 3 ans il y a | 0

Réponse apportée
Reduce a large XY array to a much smaller xy array where the x data is diluted to a much smaller vector and y values are the mean of the ones inbetween
Eg. taking a matrix of 2-by-30: A1 = [1:30; 4*(1:30)] x = A1(1, 1:5:end) y = mean(reshape(A1(2,1:end),6,5),2) B1 = [x;y.'] ...

environ 3 ans il y a | 0

A résolu


Integer sequence - 2 : Kolakoski sequence
Get the n-th term of Kolakoski Sequence.

environ 3 ans il y a

A résolu


"Look and say" sequence
What's the next number in this sequence? * [0] * [1 0] * [1 1 1 0] * [3 1 1 0] * [1 3 2 1 1 0] This a variant on the w...

environ 3 ans il y a

Réponse apportée
i have two curves which i need to multiply
Eg.: multiplication of signals: % Case 1 t = linspace(0, 3*pi, 200); S1 = sin(2.5*t); S2 = 0.5*cos(3*t); SigM =S1.*S2; fig...

environ 3 ans il y a | 1

Réponse apportée
How can I find filter type and order and another?
Have seen this DOC that gives all the essential hints for your exercise.

environ 3 ans il y a | 0

Réponse apportée
loop index 'i' is changed inside of a FOR loop
Because this part of your code is outside of the set loop: end % Wrongly placed ... V(i) = (1/YBUS(i,i))*((P(i)-1i*Q(i))...

environ 3 ans il y a | 0

Réponse apportée
How can I change the parameters value of pmsm, like the stator resistor during simulation ?
Here is one example how to assign parameter values: clearvars; clc; close all t = 0:.5:5; Signal = sin(t); % Inpu...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
How to solve integral equation in matlab
MATLAB has a few functions to compute numerical and symbolic integrals, e.g.: integral(), int(), or writing your own code using ...

environ 3 ans il y a | 0

Réponse apportée
im trying to make a function that checks my simulink model for errors to display a message, how do fix this?
Point 1. To simulate and obtain simulation results of your simulink model from MATLAB is to write m-file with sim() fcn to run y...

environ 3 ans il y a | 1

Réponse apportée
How can I change the parameters value of pmsm, like the stator resistor during simulation ?
Approach # 1 is to introduce new variables in the parameters of the block (PMSM). By double clicking on the block (PMSM), you ca...

environ 3 ans il y a | 0

Réponse apportée
How do I scale every line by the same amount?
The scaling up what you are creating can be done at the start of your code by introducing a scaling factor: clearvars; close al...

environ 3 ans il y a | 0

Réponse apportée
Best parallel computing option for heavily serialized code
Have seen this fcn: spmd ... end https://www.mathworks.com/help/parallel-computing/spmd.html

environ 3 ans il y a | 0

Réponse apportée
Hello, I want to use the gray wolf algorithm to hide images.
Have you seen this published 3rd party toolbox of grey wolf optimizer: https://www.mathworks.com/matlabcentral/fileexchange/4725...

environ 3 ans il y a | 0

Réponse apportée
Simultaneously play and record a signal with audioPlayerRecorder
Yes, you can read or listen your created sound or existing one using sound() fcn, e.g.: Fs = 44100; sweep = sweeptone(2,1,Fs);...

environ 3 ans il y a | 0

Réponse apportée
Hi, I want to convert an image into a string of 0's and 1's using huffman transform and hide it in another image.
A simple way is using a conversion from RGB to grayscale using rgb2gray(). Then proceed with builtin fcns: hist, huffmandict, hu...

environ 3 ans il y a | 0

Réponse apportée
Difference Between Built-in Periodogram and Self-Calculated Periodogram
The only thing that you are missing that you ahve not specified FFT window size when you've employed MATLAB's builtin fcn: clc ...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
xlsxwrite is not working. Do I need MS Excel pre-installed to use xlswrite
Use writetable() instead of xlswrite() or writematrix() For .xls or .xlsx or .csv, writetable and writematrix() work perfectly...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Tuning a PID controller to desired Overshoot, settling time and rise time
Simply double-click on PID block and its parameters window opens. Click on "Tune" button as shown in the attached screen shot -...

environ 3 ans il y a | 0

Réponse apportée
Cannot find the derivative of a function in terms of time
syms q(t) t a diff(a*cos(q))

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Plotting a vector function
If understood your question correctly, you may use plotting vector field plot functions of MATLAB, e.g.: quiver(), quiver3(), co...

environ 3 ans il y a | 0

Réponse apportée
How to convert pcap data to bin data?
Did you read your pcap file: https://www.mathworks.com/help/5g/ref/pcapreader.html Writing a pcap file: https://www.mathworks.c...

environ 3 ans il y a | 0

Réponse apportée
loop of exportgraphics fails for dot indexing only in the second loop
As you stated: finalhis=figure(ADcntr); Then this command: exportgraphics(myAxes,(fhpath)); has to be: exportgraphics(finlh...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Automatic creation of dropdown lists in Matlab App Designer.
Here is a good source on how to create drop-down app window: https://www.mathworks.com/help/matlab/ref/uidropdown.html Good vi...

environ 3 ans il y a | 0

Charger plus