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

fast 13 Jahre vor | 2

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 0

| akzeptiert

Beantwortet
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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 1

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 1

| akzeptiert

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

| akzeptiert

Beantwortet
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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

Frage


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

fast 13 Jahre vor | 1 Antwort | 0

1

Antwort

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 0

| akzeptiert

Mehr laden