Resuelto


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

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 0

Pregunta


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

más de 4 años hace | 2 respuestas | 0

2

respuestas

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

más de 4 años hace | 0

Pregunta


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

más de 4 años hace | 4 respuestas | 0

4

respuestas

Pregunta


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

más de 4 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

más de 4 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

más de 4 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

más de 4 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

más de 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 4 años hace | 3 respuestas | 0

3

respuestas

Pregunta


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

más de 4 años hace | 1 respuesta | 0

1

respuesta

Resuelto


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

más de 4 años hace

Resuelto


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

más de 4 años hace

Pregunta


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

más de 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 4 años hace | 1 respuesta | 0

1

respuesta