Gelöst


multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

etwa 4 Jahre vor

Gelöst


Unit Matrix
Given n, you should return an n-by-n unit matrix. Example: If input is n=2 then A = [ 1 0 0 1 ] If input ...

etwa 4 Jahre vor

Gelöst


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

etwa 4 Jahre vor

Gelöst


Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

etwa 4 Jahre vor

Beantwortet
Commands for plot and subplot
Subplot: Subplot divides the current figure into row,column and the figure position. Plot: plot creates a 2 dimension(X axes vs...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to generate horizontal titles on the table generated by array2table
You can try with this: tableGen=[1.0000 0 0.5000 0.7500 0.8750 0.8125 0.8438 0.8594 0.8516 0.84...

mehr als 4 Jahre vor | 0

Frage


How can i show only definite data values in bar plot?
X=1:7; Y=[100 50 35 20 8 7 6]; bar(Y); text(X,Y,num2str(Y','%0.2f'),'HorizontalAlignment','center','VerticalAlignment','botto...

mehr als 4 Jahre vor | 2 Antworten | 0

2

Antworten

Beantwortet
How to use 'for' loop to string variable ?
trying something new. want to export all mat files as@KSSV suggested. applied this code: files = dir('*.mat') ; for k = 1:l...

mehr als 4 Jahre vor | 0

Frage


How to use 'for' loop to string variable ?
I have severals mat files. I have defined these files as a string variable in m file. i can execute the files seperately with a ...

mehr als 4 Jahre vor | 4 Antworten | 0

4

Antworten

Frage


How to execute several mat file in a loop.
I have 5 mat files in a folder. Battery_Power_280.mat Battery_Power_300.mat Battery_Power_320.mat Battery_Power_340.mat Ba...

mehr als 4 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


how to use a 'loop' for certain counts
I have 15 areas in my power data if i plot. want to calculate each area by using trapz function. can calculate each area manuall...

mehr als 4 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


why does 'sum' and 'trapz' function show same result ?
Just found the same result for "sum" and "trapz" function. is it same for uniform spacing (i think here is1) in trapz ? if ye...

mehr als 4 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How to find the area from a Positive and negative signal plot
Facing problem to find the positive and negative signal area. want to find the how many signals has in the positive and negati...

mehr als 4 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


how to find the inner values between two integer value
hello, facing problem to find the inner values between 2 integer. please have the attached file. 1. at 6am power is 30 and at ...

mehr als 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to convert timeseries class mat file to excel
Hello. Facing probelm with timeseries class. i want to convert the mat file into excel. I have used the below code,but it's sho...

mehr als 4 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


How can i run the same scripts of Matlab in Matlab app design?
Line 1: t=readtable("Load.xlsx"); Line 2: app.UITable.Data=t; Line 3: time=t(:,1); % first colomn Line 4: power_PV=t(:,2)...

mehr als 4 Jahre vor | 1 Antwort | 0

1

Antwort

Gelöst


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

mehr als 4 Jahre vor

Gelöst


Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

mehr als 4 Jahre vor

Frage


how to write an Algebraic Equation in Matlab
Hello, there is an equation for solving Energy stored in a Capacitor. That's an easy equation. But, I want to write that solvin...

mehr als 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


if or for loop
Hello, I am confused about this issue. i have an excel file with 2 colomn. first column is the time(hours) and second column is...

mehr als 4 Jahre vor | 1 Antwort | 0

1

Antwort