已解决


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

5 years 前

已回答
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...

5 years 前 | 0

已回答
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...

5 years 前 | 0

已回答
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...

5 years 前 | 0

| 已接受

已回答
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...

5 years 前 | 1

| 已接受

已回答
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, ...

5 years 前 | 0

| 已接受

已回答
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}{...

5 years 前 | 0

| 已接受

已回答
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...

5 years 前 | 0

已解决


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

5 years 前

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

5 years 前 | 0

| 已接受

已回答
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...

5 years 前 | 0

| 已接受

已回答
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 = ...

5 years 前 | 1

| 已接受

已回答
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...

5 years 前 | 0

| 已接受

已解决


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

5 years 前

已回答
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...

5 years 前 | 0

| 已接受

已回答
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); ...

5 years 前 | 1

| 已接受

已回答
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...

5 years 前 | 0

已回答
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...

5 years 前 | 0

已解决


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

5 years 前

已回答
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;%...

5 years 前 | 0

| 已接受

已回答
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...

5 years 前 | 0

| 已接受