已回答
how to make matlab pause when it running the coding
Hi! Use one of the commands "pause" or "input".

11 years 前 | 2

已回答
how to display a matrix with negative values as a image
There are many ways of doing this # take the absolute value with "abs" # shift all values so that you don't have negatives a...

11 years 前 | 0

已回答
how can I open the folder from desktop using matlab code?
Hi! You get the users directory in Windows with [~, userdir] = system('echo %USERPROFILE%') The desktop folder is in ...

11 years 前 | 0

已回答
message box in the code
Hi! I don't use magbox, but for formatted messages in command window, look at <http://www.mathworks.com/matlabcentral/fileexc...

11 years 前 | 0

已回答
Extracting sections of data from a Matrix with Indexing
Hi! Search the third column for your desired month irows = (EditedWindTempMatrix(:,3) == 11) | ... (EditedWindTempMat...

11 years 前 | 0

已回答
Floating numbers generation in a range
19.8*rand(50, 1) +2 .2

11 years 前 | 0

已回答
Is this expression true?
You write exponential notation in matlab as D(i,j) = 45.6e-32

11 years 前 | 0

已回答
What should I do to add a new row and a new column to a matrix?
N = zeros(size(M)+2); N(2:end-1, 2:end-1) = M;

11 years 前 | 0

| 已接受

已回答
How to read a text or a .c file without comments into a cell array ?
Hi! I usually do it this way: * read full file with textscan * define cell array of comment strings * use regexp t...

11 years 前 | 0

已回答
how to read complicated text file
try this % read file with 5 columns and delimiter '|' fid = fopen('readin.txt'); FC = textscan(fid, '%s %s %s %s %s',...

11 years 前 | 0

| 已接受

已回答
3D matrix manipulation problems
Hi! I don't understand why the x and y spacing depends on the number of modes/frequencies. Take a look at the following co...

11 years 前 | 0

| 已接受

已回答
what is meant by 3e4 in matlab?
Hi! Did you try to input "3e4" in the command window? What happens? Also try 3e1 3e2 3e3

11 years 前 | 0

已回答
How can i convert a polygon into a rectangle?
Hi! You have your polygon coordinates in (x/y) pairs? Take their min/max values and cut from the video frame the rectangle R(...

11 years 前 | 0

已回答
Does someone know how to print a square onto the command window using for loops????
Hi! You should start reading here: <http://www.mathworks.com/help/matlab/control-flow.html> This explains how to use loops an...

11 years 前 | 0

已回答
Clear a line drawn in plot.
Hi! Each time you plot something with the "h=plot" command, it gives you as return value the handle "h" of that plot. Then yo...

11 years 前 | 1

已回答
A question about product operation
Hi! x = [1, 2, 3]; % row vector y = [2; 3; 4]; % column vector z = y * x;

11 years 前 | 0

已回答
Plot a line, changing origin
Hi! x = [1 2 3]; y = [2 4 9]; plot(x,y); This doesn't start at (0,0). If you have problems please post your code.

11 years 前 | 0

| 已接受

已回答
i need a m-file of this quastion
Hi! Do you really expect others here at Matlab Answers to do your work???

11 years 前 | 0

已回答
How to plot each matrix in a cell?
Hi! Create a figure, set it to "hold" (i.e. overwriting with subsequent plots) and plot figure(1); cla; hold on; cell...

11 years 前 | 0

| 已接受

已回答
creating vector in matlab fcn bock
Hi! If you have trouble defining functions in Matlab, start here: <http://www.mathworks.com/help/matlab/matlab_prog/create-fu...

11 years 前 | 0

已回答
Calculate the volume of 3D models
Hi! You can calculate the volume if you create a 3d mesh (e.g. with tetrahedrons) of the models. But this is not trivial! ...

11 years 前 | 0

已回答
how to write a function?
This is basic Matlab that you can learn using the Documentation Center: <http://www.mathworks.com/help/matlab/function-basics.ht...

11 years 前 | 1

| 已接受

已回答
how to convert a long list into an array with semicolongs
Hi! What exactly do you need? Do you have a loop for playing sounds according to the letters? for n = 1:length(str) ...

11 years 前 | 0

已回答
Image handling with MATLAB
Hi! Of course you can! Look at the "imread" function and start reading here: <http://www.mathworks.com/help/matlab/creating_p...

11 years 前 | 0

| 已接受

已回答
sort rows of a matrix based on their maximum value
A=randi(100,10,5); for n = 1:size(A, 1) B(n,:) = sort(A(n,:)); end

11 years 前 | 0

已回答
HOW TO CALL A FUNCTION IN ANOTHER MFILE FROM A MAIN PROGRAM
Hi! Place the function mfile in your path and give it the same name as the function inside. Take a look: <http://www.mathwork...

11 years 前 | 0

已回答
How to: For loop and matrix indexing in matlab?
Hi! Your code only gives you a scalar "initial_matrix" with value 0. Take a look at <http://www.mathworks.com/help/matlab/...

11 years 前 | 0

提问


Editing superclass properties from subclasses
Hi! I have a question related to the Matlab example <http://www.mathworks.com/help/matlab/matlab_oop/a-simple-class-hierarchy...

11 years 前 | 1 个回答 | 0

1

个回答

已回答
Don't know how to write the loop
Hi! I' m a bit confused with "index" and "j" ... Try logic operators. Your column is col = vector(:, index) To see...

11 years 前 | 0

| 已接受

已回答
Interpolation in mat-lab
Hi! What kind of interpolation do you need? Try "interp1"!

11 years 前 | 0

| 已接受

加载更多