답변 있음
How do I shift columns (left or right) in a matrix
I used the vectorization capability of MATLAB, so it is faster and there is no need for a for loop. data = rand (5,16); chann...

5년 초과 전 | 0

답변 있음
Where can i find the power calculation block in simulink?
Go to library browser. Then open Simulink > Quick insert > Math operations. You can find the Power block here. Or Instead of ...

5년 초과 전 | 1

답변 있음
How can I fit 3-D scatter points with value?
If your model for the relationship between (theta, r, z) triplets and the pressure is linear, use regress. Otherwise, use lsqcur...

5년 초과 전 | 0

| 수락됨

답변 있음
bar graph with variation in x axis
Use the following code. You replace your data with DataY. figure ('Position', [293,243,900,420]); DataX = (20:30:620)'; ...

5년 초과 전 | 0

| 수락됨

답변 있음
How to plot sine waves in x and y-axes simultaneously?
You should first create the horizontal sine and then rotate it for pi/2 using rotation matrix to get the vertical sine. You can ...

5년 초과 전 | 0

| 수락됨

답변 있음
genetic algorithm to optimize the variable of linear regression(a,b1,b2)
First of all, you should use regress for multiple linear regression. However, if you want to know whether it is possible to use ...

5년 초과 전 | 1

질문


Why Global Optimization toolbox is codenamed "gads"?
MATLAB toolboxes have straightforward codenames. For example, stats for Statistics and Machine Learning toolbox, optim for Optim...

5년 초과 전 | 답변 수: 1 | 1

1

답변

답변 있음
MATLAB/NOMAD for global optima?
Your problem is a bound-constrained problem with five decision variables. I think many solvers in the Global Optimization toolbo...

5년 초과 전 | 0

답변 있음
Product of three 1d vectors and a 3d array
aPermuted = a(:); bPermuted = permute (b(:),[2,1,3]); cPermuted = permute (c(:),[3,2,1]); Z = T .* aPermuted .* bPermuted ....

5년 초과 전 | 0

| 수락됨

답변 있음
How to group boxplots on matlab
boxchart is introduced in 2020a and is much more flexible than boxplot and has an option for plot grouping. boxchart documenta...

5년 초과 전 | 0

답변 있음
Time based output at simulink
You can simply connect it to the next block :)

5년 초과 전 | 0

답변 있음
Plot area with equation
r = 50; NumPoints = 500; [UnitX,UnitY,UnitZ] = sphere (NumPoints); RealX = r * UnitX; RealY = r * UnitY; RealZ = r * Un...

5년 초과 전 | 0

| 수락됨

답변 있음
Time based output at simulink
You can use "Display" block to view the last value or "To Workspace" block and set it to return the last value to the base works...

5년 초과 전 | 0

문제를 풀었습니다


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

5년 초과 전

문제를 풀었습니다


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

5년 초과 전

문제를 풀었습니다


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

5년 초과 전

문제를 풀었습니다


Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


Calculate a Damped Sinusoid
The equation of a damped sinusoid can be written as |y = A.ⅇ^(-λt)*cos(2πft)| where |A|, |λ|, and |f| ...

5년 초과 전

문제를 풀었습니다


Make roundn function
Make roundn function using round. x=0.55555 y=function(x,1) y=1 y=function(x,2) y=0.6 y=function(x,3) ...

5년 초과 전

문제를 풀었습니다


Rounding off numbers to n decimals
Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

더 보기