A résolu


Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

environ 5 ans il y a

Réponse apportée
I want to draw an ellipsoide with one cercle and one ellipse inside it and have the axis of the cercle and the ellipse drawn too
Here is the ellipsoid and the circle. Did you want the ellipse to be at a particular angle? % Parameters % Center xc = 0; yc...

environ 5 ans il y a | 0

Réponse apportée
Unwanted marker in logarithmic boxchart
Behnam, The Dev team is currently working on this issue. A workaround for now is to use boxplot instead. x = 1:5; y = ran...

environ 5 ans il y a | 0

Réponse apportée
read unstructured data with readtable function
You can simply use the "Import Data" button on the toolstrip in MATLAB. A user interface will show up and before importing the...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How to select every 10 images corresponding to one image?
%Select image folder A A_dir = uigetdir(); %Select image folder B B_dir = uigetdir(); %Identify files of interest A_files=d...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
Plot 3D contours and surfaces with axes having the correct values?
Are you trying to create a surf plot as shown below? where x and y are vectors of the coordinates. %Generate Surf Plot [xg, ...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
how to retrieve a table from a cell array?
The answer is actually written on your tabs. To view the whole table in the last screenshot, type the following: results{1,2}{...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
I have a multiple matrice with x,y values with z as dependent variable. How can I average the matrice to make a surface plot?
Anonyms , I would try the following below. Let me know if this is what you wanted. %Select Excel File to Load [filename fol...

environ 5 ans il y a | 0

A résolu


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

environ 5 ans il y a

Réponse apportée
How to plot an overlay curve on the figure attached here.
Use hold on then plot the graph. plot(x,y)

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How can I extract the logical value in a loop (various columns)?
is this what you are looking for? idx=logical(idx); for i = 5:10 [X,Y]= meshgrid(T2.(i),T.(i)); C = X(idx); D = Y(i...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
For Loop - need to iterate values at the same time.
for x = [1:10] fstart = 'D:\Michael Files\Data\Run '; f2 = sprintf('%05d', x); f3 = '\Ascii\Xxsv00001 '; y = 266+x; fend = ...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
Creating a loop to find next point in array
Edit: I just realized I misread what you wanted. I thought you needed to remove the distance, not current_point. Assuming index...

environ 5 ans il y a | 0

| A accepté

A résolu


Project Euler: Problem 7, Nth prime
By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the Nth prime nu...

environ 5 ans il y a

Réponse apportée
Report Generator, independently formatting Formal Table columns and changing a header
X = zeros(5,1);import mlreportgen.report.* import mlreportgen.dom.* X = zeros(5,1); Y = ones(5,1); Z = ["A";"B";"C";"D...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How do I fill the centers and calculate the distance between two centerpoints in matalb?
figure; x = rand(1,1); y = rand(1,1); r = rand(1,1); th = 0:pi/100:2*pi; a = r*cos(th)+x; b = r*sin(th)+y; plot(a,b); ...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
how to get the row and column number of a specific value in an array
D=[ 42 24 20 17 20 24 19 18 18 15 39 21 19 17 20 18 18 19 15 1...

environ 5 ans il y a | 0

Réponse apportée
How to display the output as table shown below?
z(:,:,1) =[ 0.4794 0.8776 0 0.0000 1.0000 0 -0.4794 0.8776 0]; z(:,:,2) =[ 0.4794 0.8...

environ 5 ans il y a | 0

A résolu


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

environ 5 ans il y a

Réponse apportée
I wrote a random program in MATLAB How do I get multiple runs of this program on one chart?
You can use the command. hold on to overlay additional plots. For example: clc clear all gama=0.5; beta=1;N=100; i0=5;%...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How do I define colors for individual bars on my bar graph after "hold on"?
Suhyun, It appears you are generating a new bar graph when creating a legend. Change legend(bar(x11,y11,0.7),l); to thi...

environ 5 ans il y a | 0

| A accepté