답변 있음
I need my array to hit zero before starting next iteration
diff_counts=[20 40 60 80 100]; cases1=zeros(1,10080); starts1=sort(randi(10080,1000,1),'ascend'); for j=1:1000 cases1(star...

8일 전 | 0

답변 있음
Exact value of a result
residuez requires doubles as input, but p is just the roots of polynomial a which you could use symbolic to produce. a=sym([1, ...

8일 전 | 0

답변 있음
I need my array to hit zero before starting next iteration
Not sure if I completely understood your question, but break will break out of the for-loop. diff_counts=[20 40 60 80 100]; ca...

8일 전 | 0

답변 있음
how to calculate for a range of values for different initial conditions
beta=linspace(0,(pi/2),90); m=[1.25, 2, 6, 10]; [B,M]=meshgrid(beta,m); gamma= 1.4; theta=atan(2.*cot(B).*((M.*sin(B)).^2-1)...

8일 전 | 0

답변 있음
Help writing a function for a gui
Not sure what you want the randomize function to do. f= figure; axes('Parent',f,'Position',[0.05, 0.25, 0.9, 0.7]); x = 0.25;...

8일 전 | 0

| 수락됨

답변 있음
Help reduce number of rows by grouping continous data
d=find(diff(yourData)>1); m=[yourData(1),yourData(d(1))]; for k=2:length(d) m(k,:)=[yourData(d(k-1)+1),yourData(d(k))];%ge...

8일 전 | 0

| 수락됨

답변 있음
list all 9 integer between -3.5 and 5.5
unique(fix(-3.5:5.5))

9일 전 | 1

| 수락됨

답변 있음
How to access the double cell 5*1 ?
Your question is not clear to me. If you just want to access your cell array. load('vims.mat'); f{1}(2,3) %first cell, row 2 c...

9일 전 | 1

| 수락됨

답변 있음
How to compare multiple variables against one and produce an answer for each comparison?
ON=5;BC=2;QC=4;AB=1; L=["ON","BC","QC","AB"];%put names in string array r=[ON,BC,QC,AB];%put all variables into a single array...

9일 전 | 0

답변 있음
Read nth image from a folder and compare it with nth image from different folders and store the result
a=dir('F1/');b=dir('F2/');c=dir('F3/'); for k=1:length(a.name) i1=imread([a(k).folder,'/',a(k).name]); i2=imread([b(k...

9일 전 | 0

문제를 풀었습니다


Digits of Powers of 2
In Project Euler Problem #16, we are asked for sum of the digits of powers of 2. Here we will be asked for more than that. Give...

9일 전

답변 있음
How to assign sequence values to an specific column of a table?
size = [720 4]; Type = ["double","double","double","double"]; Names = ["Hours","PrEV","SoCEV","Gen"]; master = table('Size',s...

9일 전 | 0

답변 있음
Finding min and max values in a structure
d=struct2cell(yourStruct); m=0;M=0; for k=1:length(d) m=min([m,d{k}]); M=max([M,d{k}]); end

9일 전 | 0

답변 있음
Upload files with almost the same name in different components of a matrix
for k=1:1e4 s=sprintf('%08d.txt',k); spin(:,:,k)=load(['D:\Magnetic-Distribution\spins-',s]); end

9일 전 | 0

답변 있음
I need help randomizing the points of the traingle
figure;hold on; for k=1:10 p=polyshape(rand(3,1),rand(3,1)); plot(p) end

9일 전 | 0

문제를 풀었습니다


Sum the unitary divisors of a number
Cody Problems 1933 and 46898 deal with , the sum of divisors function. This problem deals with , the sum of unitary divisors fun...

12일 전

문제를 풀었습니다


calculate the perimeter for a triangle with two equal sides
calculate the perimeter for a triangle with two equal sides where the equal sides are x and the other one is z

12일 전

문제를 풀었습니다


area of a triangle
area of a triangle, given x as a side

12일 전

문제를 풀었습니다


perimeter of a square

12일 전

문제를 풀었습니다


volume of a cone
create a program that allows us to calculate the volume of a cone using radius "r" and height "h"

12일 전

문제를 풀었습니다


perimeter of a trangle
g

12일 전

문제를 풀었습니다


elevate a number to its square
square

12일 전

문제를 풀었습니다


find the area of a triangle from its sides
pythagorean theorem

12일 전

문제를 풀었습니다


perimeter of a rectangle
perimeter of a rectangle where each side is 12 and its height is 31

12일 전

문제를 풀었습니다


multiplication of two variables
mutliplication of two variables

12일 전

문제를 풀었습니다


resta de dos numeros
restaa

12일 전

문제를 풀었습니다


calculate the perimeter for a triangle with no equal sides
calculate the perimeter for a triangle with no equal sides (x,z,s)

12일 전

문제를 풀었습니다


perimeter of a football field
what formula should someone use if they are trying to find the perimeter of a footbal field

12일 전

문제를 풀었습니다


area of a circle
area of a circle with "r" as radius

12일 전

문제를 풀었습니다


Count the unitary divisors of a number
Cody Problem 56738 asks for a list of the unitary divisors of a number. For this problem, write a function to count the unitary ...

12일 전

더 보기