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

más de 12 años hace | 2

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

| aceptada

Respondida
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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 1

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

más de 12 años hace | 0

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 1

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

| aceptada

Respondida
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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

Pregunta


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

más de 12 años hace | 1 respuesta | 0

1

respuesta

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

| aceptada

Cargar más