답변 있음
computing first 50 terms of sequence
Keeping your code intact for most of the part, this is a quick fix x = zeros(2,50); x(:,1) = [1;0]; A = [1.52 -.7; .5...

대략 9년 전 | 0

| 수락됨

문제를 풀었습니다


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

대략 9년 전

문제를 풀었습니다


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

대략 9년 전

문제를 풀었습니다


Parse string and identify specific string sequence in algebraic equation
Given a string S that defines an algebraic expression such as: S= 'X= A1 + A2*(Y1 + A3*Y3)*exp( A4*Y12 + Y1) ;' return a...

대략 9년 전

답변 있음
picking data from excel
matlab provides an extensive documentation on xlsread. Please try and see if this helps doc xlsread

대략 9년 전 | 0

| 수락됨

답변 있음
Contain outputs of function in one table(?)
1. If your output variables all have equal number of rows, you indeed can use a 'table' datatype. doc table 2. Otherwise...

대략 9년 전 | 1

| 수락됨

답변 있음
How to replace data in a matrix by comparing from another matrix?
Assuming, the 'a' matrix has unique values in the first column for bRow= 1:size(b, 1) aRow = find(a(:,1)==b(bRow,1),...

대략 9년 전 | 1

답변 있음
How do I loop through incrementally changing values
You could utilize the colon and element-wise operators, instead of looping. For example: alpha = 1:0.5:20; a = 0.1 + ...

대략 9년 전 | 0

답변 있음
How do i create two multi-dimensional arrays:  a 10 x 10 x 10 numerical array (3-D) anda 5 x 5 x 5 x 5 numerical array (4-D) where each value in each array corresponds to the multiplication of indices?
This could be another approach: A = ones(10, 10, 10); for i=1:10 A(i,:,:) = A(i,:,:)*i; A(:,i,:) = A(:,i,:)*i;...

대략 9년 전 | 2

| 수락됨

답변 있음
Color maps and for loops
I guess, this is what you're looking for: myMap = zeros(4,3); for i=1:4 myMap(i,1) = i/4; end firstCo...

대략 9년 전 | 0

| 수락됨

답변 있음
add the particular column in the for loop
Are you looking for something like this? dataMatrix = [1 2 3; 4 5 6; 7 8 9]; outPut = zeros(size(dataMatrix,2),1); ...

대략 9년 전 | 0

답변 있음
While loop for a menu
In my opinion, the proper way of doing this would be - using call-back functions. Please have a look if this documentation helps...

대략 9년 전 | 0

| 수락됨

답변 있음
how to make a radio button selected and another radio button deselected by clicking one of the radio button
I think, this documentation will help you help uibuttongroup

대략 9년 전 | 0

답변 있음
How to plot point x on a line
I agree that the question is a bit unclear. If you're wondering how to find and highlight the intersection point(s) between t...

대략 9년 전 | 0

| 수락됨

답변 있음
How do I close Database toolbox connections?
You should be able to close the connection using the command: close(connectionObj) Also, the documentation might be usef...

대략 9년 전 | 0

| 수락됨

답변 있음
exporting strings out of structure into a vector
Your Img_info variable is storing only the information of the last (nop-th) image, since it is outside the for loop.

대략 9년 전 | 1

답변 있음
If loop giving me troubles
I agree with the previous comments. However, your problem is with the inappropriate use of assignment operator in the if-else l...

대략 9년 전 | 0

| 수락됨