Resuelto


Matlab Basics - Rounding III
Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000

12 meses hace

Resuelto


Check that number is whole number
Check that number is whole number Say x=15, then answer is 1. x=15.2 , then answer is 0. http://en.wikipedia.org/wiki/Whole_numb...

12 meses hace

Resuelto


MATLAB Basic: rounding IV
Do rounding towards plus infinity. Example: -8.8, answer -8 +8.1 answer 9 +8.50 answer 9

12 meses hace

Resuelto


MATLAB Basic: rounding III
Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8

12 meses hace

Resuelto


Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

12 meses hace

Resuelto


MATLAB Basic: rounding II
Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9

12 meses hace

Resuelto


MATLAB Basic: rounding
Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

12 meses hace

Respondida
How to change just the marker edge thickness and not the entire line thickness in plots?
Plot the data without markers then add a scatterplot overlay of whatever marker size and width you want. x = rand(1,10); y = r...

alrededor de 1 año hace | 0

Respondida
How to specify number of decimals in table2word or writematrix
You can use fprintf to do that. fprintf fid1 = fopen('filename.csv', 'w'); fprintf(fid1,'%.4f',0.999763425634234234);

alrededor de 1 año hace | 0

Respondida
How does one use a string vector to select rows from a table. The vector length and the table height are unequal
T = %your table X = {"AGAP004746", "AGAP004753", "AGAP004756"}; T1 = T(cell2mat(cellfun(@(x) any(strcmp(x,X)),T{:,1},'Unifor...

más de 1 año hace | 0

Respondida
Mean of an oscillatory trajectory
p = polyfit(t,X,2); % fit a second order polynomial to the data newT = linspace(min(t),max(t)); % 100 evenly spaced steps ove...

más de 1 año hace | 1

| aceptada

Respondida
How to make a bus object?
Something like this should work. function create_Buses() % Bus object clear elems; elems(1) = Simulink.BusElement; ele...

más de 1 año hace | 0

Respondida
Strategies to optimize nested for loops?
If you are going to be looping many times through a set of operations with a goal of execution time or efficiency, you should ma...

más de 1 año hace | 0

| aceptada

Respondida
how to change the font size in a plot (only for the axes numbers) for double axis figure
Save the axes handle when you create the plot rather than using gca. [AX,h1,h2] = plotyy(1:10,rand(10,1),1:10,rand(10,1)); set...

más de 1 año hace | 0

Respondida
How can i plot a line from an already plotted line?
% for a given value of X that lands on the defined range of the black line, % define the corresponding Y value X = 5; b...

más de 1 año hace | 0

Respondida
How can I crop the image from an specific boundary?
The mask and blur causes a bit of artifacting in the text, and there is obviously a bit of color outside of the boundaries. I'm ...

más de 1 año hace | 0

Respondida
How can I divide a whole circle into two sectors at an angle?
You could use the end points of the lines to generate a mask of that section of the image. Xpix = 480; Ypix = 480; figure; i...

más de 1 año hace | 1

Respondida
Creating a map with Longitude, Latitude, Concentration (vector of values over time)
This is an admittedly hackish workaround that I used to navigate the same issue you are having. No promises that it will work fo...

más de 1 año hace | 0

Pregunta


Why are pool workers going inactive while many iterations remain?
I have a task wrapped in a parfor loop where text data files are read then converted to numeric values and downsampled to common...

más de 1 año hace | 1 respuesta | 2

1

respuesta

Resuelto


Too Many Zeros, Dump Them!
Sometimes when I create a matrix, I use this syntax: a = zeros(1000,1000); But when the function ends, I find that I don'...

más de 1 año hace

Resuelto


Given a matrix, swap the 2nd & 3rd columns
If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4]; then the result is ans = 1 3 2 4 1 3 2...

más de 1 año hace

Resuelto


matrix zigzag
Unfold a 2-D matrix to a 1-D array in zig-zag order, e.g., for matrix [ 1 2 3 ; 4 5 6 ; 7 8 9 ] the resulting 1-...

más de 1 año hace

Resuelto


Matlab Basics - Rounding II
Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346

casi 2 años hace

Resuelto


Find the largest number
Find the largest number |x| among 4 numbers given as variables |a|, |b|, |c|, and |d|. Example: Input: a = 4; b = 7; c ...

casi 2 años hace

Resuelto


Are all the three given point in the same line?
In this problem the input is the coordinate of the three points in a XY plane? P1(X1,Y1) P2(X2,Y2) P3(X3,Y3) how can...

casi 2 años hace

Resuelto


Remove All elements less than 5
Given an input vector x, remove all elements of x less than 5 . Example: Input x = [ 1 2 5 7 3 ] Output y is [ 5 7 ...

casi 3 años hace

Resuelto


Find the Best Hotels
Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...

casi 3 años hace

Resuelto


Crop an Image
A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. An element value re...

casi 3 años hace

Resuelto


Calculate BMI
Given a matrix |hw| (height and weight) with two columns, calculate BMI using these formulas: * 1 kilogram = 2.2 pounds * 1 ...

casi 3 años hace

Resuelto


Find my daddy long leg (No 's')
Given the ratio of the two legs (longer / shorter), and the hypotenuse length, find the value of the bigger leg.

más de 3 años hace

Cargar más