Respondida
How to plot a cylinder from a specified axis
@Telema Harry, r = 20; p0=[25,25,0]; %base location [X,Y,Z] = cylinder(r); h = 80; Z = Z*h; X=X+p0(1); Y=Y+p0(2); Z=Z+p0(...

alrededor de 3 años hace | 0

| aceptada

Respondida
How to change the visualization from lines to a patch
@Amanda, To help me create the maze, I made the image below. It could be helpful to future maze makers. Then I wrote a main ...

alrededor de 3 años hace | 0

| aceptada

Respondida
Parameters seem to not be optimizing in fmincon
@Joshua Scott, Here is what I understand from reading your code. Correct me if I am wrong. Function Posterior3(data, idx, para...

alrededor de 3 años hace | 0

Respondida
How do you plot a wave rose/polarhistogram?
@Whale_Shark, Here is a script that plots a regular histogram of wind direction and the same data in polar form. Data is from ...

alrededor de 3 años hace | 1

Respondida
Creating a figure with multiple raincloud plots with the same y-axis
@Eleonora Montagnani, It would help if you woudl provide a drawing or other image of what you want. It would also help if you ...

alrededor de 3 años hace | 0

Respondida
What's the simplest way to determine the mass of a sphere from a plot of its density varying in r?
@Alain Vella, I agree with @David Hill, except you want to multiply the density at each value of r by 4*pi*r^2*dr, then add the...

alrededor de 3 años hace | 0

Respondida
How to know what pixels where compressed and not compressed in a image?
@Hudson Romualdo, It is not true that specific pixels are compressed or not compressed whn an image is compressed. The JPEG al...

alrededor de 3 años hace | 0

| aceptada

Respondida
How to pick group sum values from an array
@Poorna Durga Geesupalli, [edit: correct a typo in one of the comment lines in the code, fix indenting, add comments] Xs='1111...

alrededor de 3 años hace | 0

| aceptada

Respondida
Hi when I plot I always get the same color for both bar. They are from different classes. How can I make the color different? Thank you.
@sam, y=[100 90 70]; b=bar(y,'FaceColor','flat'); %Next line: Each row is the colorspec for one bar b.CData=[1,0,0;0,1,0;0,0...

alrededor de 3 años hace | 0

| aceptada

Respondida
HOW CAN I PLOT A CURVE OVER THE SPECTROGRAM OF A LOGARITHMIC CHIRP
@raj, YOu can follow the spectrogram command with "hold on" and then make additinal plots on the same image.

alrededor de 3 años hace | 0

Respondida
Verify the Divergence theorem in MATLAB
@Camstien I now think there was a mistake in my earlier answer. Previously I said the integral for the top surface can be writt...

alrededor de 3 años hace | 0

Respondida
I'm still a beginner on MATLAB and I'm trying to write a real-time code to implement a DSP system, but an error keeps showing up (Array Indices must be positive or integers)
@Laura, Look at the loop where the error occurs: for i=0:(2*length(n)-1); y1(1,i+1)=h1_mirror(1,(end-i):1:end)*xs(1,1:i+1...

alrededor de 3 años hace | 1

| aceptada

Respondida
Set Tolerance Distance when Interpolating with Nearest Value
@Ahmet Hakan UYANIK, I assume you know the heights at scattered points, and you want to interpolate the heights to points on a ...

alrededor de 3 años hace | 0

Respondida
I'm struggling to find a way to filter the ECG signal and make modulation for the other signals
@Yousef Ahmed, please make an attempt. Then others will assist. For all of these, the carrier wave is fc=40 kHz. Therefore ...

alrededor de 3 años hace | 0

Respondida
Creating variables in a foor loop using num2str
@Jiri Kovar, [edit: change "v" to "s" in my description, to match the code] N=50; for i=10:10:N, s.(strcat('a',num2str(i)))=i...

alrededor de 3 años hace | 0

| aceptada

Respondida
Matrix size and scalar problem using fmincon
@Paul AGAMENNONE, It appears that the value Rs returned by parameterfun() is a vector (or array). Rs is a vector because funct...

alrededor de 3 años hace | 1

| aceptada

Respondida
Converting equations to first order system for ODE45
@Simon Aldworth, I think you are corect tht a state vector with six elements, as you have defined above, will suffice. If we c...

alrededor de 3 años hace | 1

Respondida
Help me plot grafic pls.
@ebru, Yoiur foumula includes an infinite sum. Do a finite sum and see if it converges after 10 or 20 or 30 terms. When I do i...

alrededor de 3 años hace | 0

Respondida
Add columns to excel file
@Truc, Code below reads the data from the .xls file and adds channels III, aVR, aVL, avF. %% Read data from xls file. filenam...

alrededor de 3 años hace | 0

Respondida
Add columns to excel file
@Truc, It seems to me far easier to add the missing leads in Excel. The attached Excel workbook has columns added for leads III...

alrededor de 3 años hace | 0

Respondida
I can't figure out how to write equations of motion into Matlab.
@Alejandro Nava, Please read the examples in ode45() help pages carefully, They are very helpful. You have two angular velocit...

alrededor de 3 años hace | 1

| aceptada

Respondida
The Newton Raphson Method
@Bruce, It appears that your x is a 2-coulmn array where column1 = theta, column 2=phi. I assume you have a function pendulum(...

alrededor de 3 años hace | 0

Respondida
I'd like to know how to make histogram with matlab raw data file.
@HYUK BIN KWON, I recommend that you read the help for load and for importdata, and try the examples provided. histogram(x) do...

alrededor de 3 años hace | 0

Respondida
Display divergence of trajectories
@Jambalya, PLease attach code as .m files instead of attaching screenshots of code. You say "after 1000 interations". I am no...

alrededor de 3 años hace | 0

Respondida
Problem using biquad filter object
@Vincent St-Pierre, I'm not sure why your code does not work, but a simple 4th order Butterworth works fine. See code below. ...

alrededor de 3 años hace | 0

| aceptada

Respondida
How do I compare two simulation files?
@Ali AlMuslih, Here is an example of what I mean. I am attaching two files of simulated data, with 5 records , plus a column f...

alrededor de 3 años hace | 0

Respondida
how to plot bifurcation graph
@shiv gaur, I do not understand what you are bdoing with a(), b(), and c() inside the main loop (the loop "for j=2:Nt+1, ..., e...

alrededor de 3 años hace | 0

Respondida
How to create a random n matrix with out any conditions
@Hajar Alshaikh, There is no way to create random numbers that are truly "without any condition". You can create random number...

más de 3 años hace | 0

| aceptada

Respondida
Interpolate consecutive values of a single array
@Luca Castrogiovanni, I assume that the values in beta are not a simple sequence such as beta=1:100. If that were tru, this wo...

más de 3 años hace | 1

| aceptada

Respondida
What factors influence the result of the optimization problem?
@Behrooz Daneshian, Usually a model makeas a specific prediciton, and the difference between the model prediction and the exper...

más de 3 años hace | 0

Cargar más