답변 있음
How to write coding for the following problem
Assuming z is a vector of length 3,x is scalar y = zeros(1,4) y(1)= x; for i = 1:3 y(i+1) = y(i)+z(i); end y(4) + 2...

거의 14년 전 | 0

문제를 풀었습니다


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

거의 14년 전

문제를 풀었습니다


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

거의 14년 전

문제를 풀었습니다


Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1

거의 14년 전

문제를 풀었습니다


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

거의 14년 전

문제를 풀었습니다


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

거의 14년 전

문제를 풀었습니다


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

거의 14년 전

문제를 풀었습니다


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

거의 14년 전

답변 있음
Drawing on a m-file via the command window; possible?
Yeah,you can do the similar think in a m-file as u did in your simulink file as long as you haven't typed clear in the comma...

거의 14년 전 | 2

답변 있음
computing area between 2 curves
If u know the vectors then try using polyarea & subtract them

거의 14년 전 | 0

질문


Color plotting of a plot
Hi everyone, I can plot curve with a color of my wish(red) as plot(sind(1:360),'red'); and this works If i want t...

거의 14년 전 | 답변 수: 1 | 0

1

답변

답변 있음
How to display a running timer in MATLAB GUI
I was trying to do a similar thing except that my timer should start from times gui starts running. This code helped me, http://...

거의 14년 전 | 0

질문


Pause the execution of script
Hi everyone, I have a script file which has a plot in it, then i have a gui which changes settings of that plot , so i used p...

거의 14년 전 | 답변 수: 1 | 0

1

답변

답변 있음
How do I use a single or double pipe (vertical line) in an "or" statement?
if k==39 || K==90 do that else do that end

거의 14년 전 | 0

| 수락됨

질문


Syncing both sliders and edit boxes
I have a gui with sliders & edit boxes in it.If i change slider position value is displyed on edit box,but how do we change slid...

거의 14년 전 | 답변 수: 1 | 0

1

답변

질문


GUI - To run a matlab script from gui
I plotted a graph and created a gui for line width,style,color.....,of graph and now I want to run script from gui with new sett...

거의 14년 전 | 답변 수: 1 | 0

1

답변

답변 있음
issues with if statement and plotting values
I understand your code now,I took P & stiffness as 1 and wrote code,so you might add them to this code otherwise, I think this s...

거의 14년 전 | 0

답변 있음
vectorization - problem with zeros
A(find(R==0),:)=0; % on doing this u make a row of A=0 at which R=0 assuming there is only 1 zero in R as per you example oth...

거의 14년 전 | 0

답변 있음
issues with if statement and plotting values
I did not exactly understand what you r trying to do,but here's my advice:- * did you declare the variables P,stiffness in yo...

거의 14년 전 | 0

질문


GUI - saving settings,rerunning with saved settings
I have a GUI with some popup menu,sliders,buttons etc.. which change properties of a plotted graph(say markers, linestyle,width ...

거의 14년 전 | 답변 수: 0 | 0

0

답변

질문


Matlab to LaTeX
How do you convert a matlab surface 3-D plot to LaTeX

거의 14년 전 | 답변 수: 2 | 0

2

답변

질문


Area of a triangle
Is there a function to find area of triangle,not by using Heron's algorithm.

거의 14년 전 | 답변 수: 2 | 0

2

답변

문제를 풀었습니다


Replace May with April
For instance, if the input is input_str = 'The flowers may bloom in April'; then the output is output_str = 'The flo...

거의 14년 전

문제를 풀었습니다


Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

거의 14년 전

문제를 풀었습니다


Matrix indexing with two vectors of indices
Given a matrix M and two index vectors a and b, return a row vector x where x(i) = M(a(i),b(i)).

거의 14년 전

문제를 풀었습니다


Back to basics 6 - Column Vector
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector, output true or false whether it is a colu...

거의 14년 전

문제를 풀었습니다


Back to basics 10 - Max Float
Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive floating-point number MATLAB can han...

거의 14년 전

문제를 풀었습니다


Back to basics 11 - Max Integer
Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive integer MATLAB can handle.

거의 14년 전

문제를 풀었습니다


Back to basics 8 - Matrix Diagonals
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector of numbers, output a square array with the...

거의 14년 전

문제를 풀었습니다


Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

거의 14년 전

더 보기