Resuelto


Is my wife right?
Regardless of input, output the string 'yes'.

más de 8 años hace

Resuelto


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

más de 8 años hace

Resuelto


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

más de 8 años hace

Respondida
Splitting a table to 2
dummy = 10*rand(10,4); T = array2table(dummy) ranRows = randperm(length(dummy)); T1 = T(ranRows(1:(0.6*length(dummy))...

más de 8 años hace | 1

| aceptada

Respondida
Double y-axis plot. Change properties of second axis
Just like how you've used xlim, it's ylim set(ax(2),'ylim',[5 10]); set(ax(2),'ytick',5:2.5:10);

más de 8 años hace | 0

| aceptada

Respondida
Nested Loop gives only last calculation as output
Yes, It is because you're *overwriting* the same file in all your iterations. There's no sample data to run your code but any...

más de 8 años hace | 0

Respondida
I have hourly data from satellite and concurrent daily data from gauges of 11 years. how can I divide each daily data with the proportion of hourly data. Thank in advance! Girma
As Jan and José-Luis said, it's simpler with a sample data and code nevertheless I needed some time off my work, hope this is wh...

más de 8 años hace | 0

Respondida
Pause model until new data arrives
You could use <https://de.mathworks.com/help/simulink/ug/control-simulations-programmatically.html set_param>. set_param('...

más de 8 años hace | 0

Respondida
what are the methods that build the matrix in Simulink 2017?
Is <https://de.mathworks.com/help/aeroblks/create3x3matrix.html this> what you're looking for?

más de 8 años hace | 0

| aceptada

Respondida
Converting excel column into matlab
Another way is to use <https://de.mathworks.com/help/matlab/ref/readtable.html#responsive_offcanvas tables>.

más de 8 años hace | 1

Respondida
Good day. Help me please?
There's an extensive support from Matlab for arduino. Please refer the <https://de.mathworks.com/hardware-support/arduino-matlab...

más de 8 años hace | 0

| aceptada

Respondida
Averaging sequential data if values are the same?
key_column_avg = key_column(diff([0 key_column])~=0);

más de 8 años hace | 0

Respondida
Replace each characters of strings with '-'
if you've no conditions but just to have the same length as the old string then maybe something like >> B='skyyiy' newS...

más de 8 años hace | 1

| aceptada

Respondida
How can I multiply two horizontal and vertical vectors in simulink?
Use the <https://de.mathworks.com/help/simulink/slref/product.html product> block. If you double click on the block you could ch...

más de 8 años hace | 0

Respondida
how to get row from matrix follow a list of rule
C = A(B,:)

más de 8 años hace | 0

| aceptada

Respondida
Load date/time data and being recognized for further time related subtraction/addtions
You could do it just by reading it as a string at first and then convert that string using |datestr|, >> s = '2015072708423...

más de 8 años hace | 0

Respondida
Why I can't display all the decimal digits in a plot?
format long

más de 8 años hace | 3

| aceptada

Respondida
Help, How can I write the symbol " theta" in Matlab
try with the backslash xlabel('\theta') read this for <https://de.mathworks.com/help/matlab/creating_plots/greek-letters...

más de 8 años hace | 6

| aceptada

Respondida
create a specific vector from excel file
If I understood correctly, the following is what you're looking for. It's basically the same as Jan's but I just did it for the ...

más de 8 años hace | 0

| aceptada

Respondida
how to vectorize these "for loop" ?
%% c = 1:10; c1 = reshape(repmat(c,1000,1),[10000,1]); c2 = reshape(repmat(c,100,10),[10000,1]); nump1 = [c1, c1.*...

más de 8 años hace | 0

Respondida
passing a file to the timer function
You need to get the |UserData| from the timer object inside your timer function. filetoRead = get(TimerH, 'UserData');

más de 8 años hace | 0

Respondida
Combining 2 matrix of different row numbers but same column numbers.
Dimensions of |ATotal| and |B| are not consistent, look at the number of rows. Afinal=[ATotal [B; zeros(1,size(B,2))]]...

más de 8 años hace | 1

Respondida
how to extract rows on certain string and save it in separate files automatically
varNames = {'stockNo','param','shares'}; vals = [1,45,10;2,656,20;3,87,30]; T = array2table(vals, 'VariableNames',varNam...

más de 8 años hace | 0

Respondida
How to split one input and perform different calculations on it to get different outputs.
You simply connect your input block to multiple blocks.

más de 8 años hace | 1

Resuelto


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

más de 8 años hace

Resuelto


Add two numbers
Given a and b, return the sum a+b in c.

más de 8 años hace

Resuelto


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

más de 8 años hace

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 8 años hace

Respondida
How do I insert a variable into a graph title?
title(['plotting ' num2str(length(xvector)) ' dipoles'])

más de 8 años hace | 2

| aceptada

Respondida
Add a license or associate a license
Once you login to this page, on the top right corner, you should see your account name with a tiny arrow. When you click on it, ...

más de 8 años hace | 1

Cargar más