Beantwortet
pls i need ful information and steps on how to use matlab to plot sin wave curve
You could find an example in the matlab documentation for plot function. >> doc plot

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

| akzeptiert

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

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

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 1

| akzeptiert

Beantwortet
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),...

mehr als 11 Jahre vor | 1

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 2

| akzeptiert

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

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
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); ...

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 1

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

mehr als 11 Jahre vor | 0

| akzeptiert