Answered

How to convert each row in a cell array to a (1*n ) double matrix?

a=cell(1,164); for j=1:164 a{j}=[Key{j,1:end}]-48; end

How to convert each row in a cell array to a (1*n ) double matrix?

a=cell(1,164); for j=1:164 a{j}=[Key{j,1:end}]-48; end

etwa 2 Stunden ago | 1

Answered

Error: Inner Matrix Dimension Must Agree

Vd = 0:0.1:0.7; P = ((0.6*Vd)-((Vd*1.5*10^-12).*(exp(38.64*Vd)-1)));%just need a dot (.*) plot(Vd,P)

Error: Inner Matrix Dimension Must Agree

Vd = 0:0.1:0.7; P = ((0.6*Vd)-((Vd*1.5*10^-12).*(exp(38.64*Vd)-1)));%just need a dot (.*) plot(Vd,P)

etwa 20 Stunden ago | 1

| accepted

Answered

How to save figures to pdf or doc document?

https://www.mathworks.com/matlabcentral/fileexchange/71053-figure2pdf

How to save figures to pdf or doc document?

https://www.mathworks.com/matlabcentral/fileexchange/71053-figure2pdf

etwa 20 Stunden ago | 0

Answered

How to assign inputs in a downloaded function

If you have built the data correctly, you access the function by: mld = ra_mld(salt,temp,Z);%dT defaults to 1 Function should ...

How to assign inputs in a downloaded function

If you have built the data correctly, you access the function by: mld = ra_mld(salt,temp,Z);%dT defaults to 1 Function should ...

etwa 20 Stunden ago | 0

Answered

Determine the number of y-values less than the number 2.0

y = 2.5 + randn(100,1); a=mean(y); fprintf('the average of this list is %f\n', a); t=nnz(y<2); fprintf('The number of values...

Determine the number of y-values less than the number 2.0

y = 2.5 + randn(100,1); a=mean(y); fprintf('the average of this list is %f\n', a); t=nnz(y<2); fprintf('The number of values...

ein Tag ago | 0

Answered

Error: The logical indices contain a true value outside of the array bounds.

function Tgem2 = MaandGem2019(maand19) load data_weer.mat; Tgem2=mean(TG(jaar==2019&maand==maand19)); end

Error: The logical indices contain a true value outside of the array bounds.

function Tgem2 = MaandGem2019(maand19) load data_weer.mat; Tgem2=mean(TG(jaar==2019&maand==maand19)); end

ein Tag ago | 0

| accepted

Answered

How to write a function for a certain number of random numbers

function out=randint(N) out=randi(19999,1,N)-10000; end

How to write a function for a certain number of random numbers

function out=randint(N) out=randi(19999,1,N)-10000; end

ein Tag ago | 1

Answered

Generate an array within three loops

count=1; for n=.1:.1:.5 for m=.1:.1:.5 for k=1:5 c(count)=94*2.4^n*.4^m;%1^k is always 1, so it does...

Generate an array within three loops

count=1; for n=.1:.1:.5 for m=.1:.1:.5 for k=1:5 c(count)=94*2.4^n*.4^m;%1^k is always 1, so it does...

ein Tag ago | 0

Answered

Error:" Output argument "y" (and maybe others) not assigned during call to"

y might never get assigned in your function. What do you want y to be if it doesn't meet any of your conditional statements? Jus...

Error:" Output argument "y" (and maybe others) not assigned during call to"

y might never get assigned in your function. What do you want y to be if it doesn't meet any of your conditional statements? Jus...

3 Tage ago | 1

Answered

Box-cox transformation isn't working!?

My understanding is that the boxcox() transformation changes the data into an approximately normal distribution. And the kstest(...

Box-cox transformation isn't working!?

My understanding is that the boxcox() transformation changes the data into an approximately normal distribution. And the kstest(...

3 Tage ago | 0

Answered

How to get row index which have my text

I assume you loaded your text into a cell. a={'Hi Helo';'How are you mekala';'what are you doing';'where are you going mekala'}...

How to get row index which have my text

I assume you loaded your text into a cell. a={'Hi Helo';'How are you mekala';'what are you doing';'where are you going mekala'}...

3 Tage ago | 0

Answered

how to extract a column from table ?

Not sure why you need a table, but convert to matrix, then: [~,idx]=max(sum(y));%idx will give you the column number of the max...

how to extract a column from table ?

Not sure why you need a table, but convert to matrix, then: [~,idx]=max(sum(y));%idx will give you the column number of the max...

3 Tage ago | 0

| accepted

Answered

how is it possible to solve below matlab codes problem?

I was somewhat confused with your question. Hopefully, this helps: for i=1:8784 %one year (hours) if Ppv_N(i,1) > PLoad(...

how is it possible to solve below matlab codes problem?

I was somewhat confused with your question. Hopefully, this helps: for i=1:8784 %one year (hours) if Ppv_N(i,1) > PLoad(...

3 Tage ago | 0

Answered

Problem with if and else and else

if 0.04<=t_1/Do&&t_1/Do<0.05 %need && t_1 = Pd*di/(2*k*Fy); Do = di + 2*t_1; ...

Problem with if and else and else

if 0.04<=t_1/Do&&t_1/Do<0.05 %need && t_1 = Pd*di/(2*k*Fy); Do = di + 2*t_1; ...

4 Tage ago | 0

| accepted

Answered

How do i display all the values of this for loop?

for b = 1:ne c = 0 + (b)*a%remove ; end or c=zeros(1,ne); for b = 1:ne c(b) = 0 + (b)*a%remove ; end display(c);...

How do i display all the values of this for loop?

for b = 1:ne c = 0 + (b)*a%remove ; end or c=zeros(1,ne); for b = 1:ne c(b) = 0 + (b)*a%remove ; end display(c);...

4 Tage ago | 0

| accepted

Answered

I want to perform a function on the values that are on the even positions of my vector

M(2:2:end)=-1*M(2:2:end);

I want to perform a function on the values that are on the even positions of my vector

M(2:2:end)=-1*M(2:2:end);

6 Tage ago | 0

| accepted

Answered

I have a problem with plotting a summation equation, Help me!

k=6; f=zeros(1,2*k-7) for i=0:2*k-8 f(i+1)=sqrt((2*k-3)/((3+i)*(2*k-4-i))); end f=cumsum(f); f=f(1:2:end);%x=0,2,4 pl...

I have a problem with plotting a summation equation, Help me!

k=6; f=zeros(1,2*k-7) for i=0:2*k-8 f(i+1)=sqrt((2*k-3)/((3+i)*(2*k-4-i))); end f=cumsum(f); f=f(1:2:end);%x=0,2,4 pl...

6 Tage ago | 0

Answered

a*x^2+b*x+c using "while"

sin and cos are always between -1 and 1. The equation can never equal 0, unless you really are leaving out some important parent...

a*x^2+b*x+c using "while"

sin and cos are always between -1 and 1. The equation can never equal 0, unless you really are leaving out some important parent...

6 Tage ago | 0

Answered

how to calculate the distance of a lat lon to the coastline?

Technically, you should use spherical trigonometry (great circle path) to determine the shortest distance. The algorithm is not ...

how to calculate the distance of a lat lon to the coastline?

Technically, you should use spherical trigonometry (great circle path) to determine the shortest distance. The algorithm is not ...

6 Tage ago | 0

Answered

How to write vector form of very large number?

You could always use java BigInteger if you don't have symbolic toolbox. import java.math.* x=BigInteger(99); x=x.pow(99); x...

How to write vector form of very large number?

You could always use java BigInteger if you don't have symbolic toolbox. import java.math.* x=BigInteger(99); x=x.pow(99); x...

7 Tage ago | 0

Answered

Convert .rpt to .m file?

https://www.mathworks.com/help/rptgen/ug/generating-matlab-code-from-report-templates.html

Convert .rpt to .m file?

https://www.mathworks.com/help/rptgen/ug/generating-matlab-code-from-report-templates.html

8 Tage ago | 0

Answered

I want to count the number of times each event (a, b, c... up until j) occurs, a(t<1 hour) b(1 hour<t<2 hours) c(2 hours<t<3 hours)... up to j( t>9 hours) based on the following sample in order to find the probability of any individual event occuring

If your data is not in a cell array, convert to a cell array. For example: A={'02:47:09';'03:28:26';'13:57:18';'08:58:46';'10:3...

I want to count the number of times each event (a, b, c... up until j) occurs, a(t<1 hour) b(1 hour<t<2 hours) c(2 hours<t<3 hours)... up to j( t>9 hours) based on the following sample in order to find the probability of any individual event occuring

If your data is not in a cell array, convert to a cell array. For example: A={'02:47:09';'03:28:26';'13:57:18';'08:58:46';'10:3...

8 Tage ago | 0

Answered

How to separate each month of this file?

M=cell(1,12); cy=[0,31,59,90,120,151,181,212,243,273,304,334,365]*24; for k=2:13 M{k-1}=yourMatrix(cy(k-1)+1:c(k),:); en...

How to separate each month of this file?

M=cell(1,12); cy=[0,31,59,90,120,151,181,212,243,273,304,334,365]*24; for k=2:13 M{k-1}=yourMatrix(cy(k-1)+1:c(k),:); en...

8 Tage ago | 1

| accepted

Answered

How to get a script to only give me the number of elements less than 2?

nnz(y<2);

How to get a script to only give me the number of elements less than 2?

nnz(y<2);

8 Tage ago | 0

| accepted

Answered

Law of motion through numerical aproximation

F=@(t)6*sin(4*pi*t-pi/6)-0.5; t=0:.01:10; a=F(t)/.12; v=cumtrapz(a); d=cumtrapz(v); plot(t,d);

Law of motion through numerical aproximation

F=@(t)6*sin(4*pi*t-pi/6)-0.5; t=0:.01:10; a=F(t)/.12; v=cumtrapz(a); d=cumtrapz(v); plot(t,d);

8 Tage ago | 0

Answered

Help me fix the code for binary to text translator

You need to decide what the format of your input binary will look like. Will you force the input to be multiples of 8-bits? If y...

Help me fix the code for binary to text translator

You need to decide what the format of your input binary will look like. Will you force the input to be multiples of 8-bits? If y...

8 Tage ago | 0

Submitted

Shake256

Uses Advance Encryption Standard algorithm from FIBS-197

10 Tage ago | 2 downloads |