답변 있음
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, ...

4년 초과 전 | 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}{...

4년 초과 전 | 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...

4년 초과 전 | 0

문제를 풀었습니다


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

4년 초과 전

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

4년 초과 전 | 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...

4년 초과 전 | 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 = ...

4년 초과 전 | 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...

4년 초과 전 | 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...

4년 초과 전

답변 있음
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...

4년 초과 전 | 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); ...

4년 초과 전 | 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...

4년 초과 전 | 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...

4년 초과 전 | 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:...

4년 초과 전

답변 있음
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;%...

4년 초과 전 | 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...

4년 초과 전 | 0

| 수락됨