Solved


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

8 years ago

Solved


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

8 years ago

Solved


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

8 years ago

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

8 years ago | 1

| accepted

Answered
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);

8 years ago | 0

| accepted

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

8 years ago | 0

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

8 years ago | 0

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

8 years ago | 0

Answered
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?

8 years ago | 0

| accepted

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

8 years ago | 1

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

8 years ago | 0

| accepted

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

8 years ago | 0

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

8 years ago | 1

| accepted

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

8 years ago | 0

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

8 years ago | 0

| accepted

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

8 years ago | 0

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

8 years ago | 3

| accepted

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

8 years ago | 6

| accepted

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

8 years ago | 0

| accepted

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

8 years ago | 0

Answered
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');

8 years ago | 0

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

8 years ago | 1

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

8 years ago | 0

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

8 years ago | 1

Solved


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

8 years ago

Solved


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

8 years ago

Solved


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

8 years ago

Solved


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

8 years ago

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

8 years ago | 2

| accepted

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

8 years ago | 1

Load more