Resuelto


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

alrededor de 5 años hace

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 1

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

Resuelto


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

alrededor de 5 años hace

Respondida
How to plot an overlay curve on the figure attached here.
Use hold on then plot the graph. plot(x,y)

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 1

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

Resuelto


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

alrededor de 5 años hace

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 1

| aceptada

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

Resuelto


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

más de 5 años hace

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

| aceptada