Réponse apportée
how to make matlab pause when it running the coding
Hi! Use one of the commands "pause" or "input".

plus de 12 ans il y a | 2

Réponse apportée
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...

plus de 12 ans il y a | 0

Réponse apportée
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 ...

plus de 12 ans il y a | 0

Réponse apportée
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...

plus de 12 ans il y a | 0

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

plus de 12 ans il y a | 0

Réponse apportée
Floating numbers generation in a range
19.8*rand(50, 1) +2 .2

plus de 12 ans il y a | 0

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

plus de 12 ans il y a | 0

Réponse apportée
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;

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 12 ans il y a | 0

Réponse apportée
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',...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
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

plus de 12 ans il y a | 0

Réponse apportée
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(...

plus de 12 ans il y a | 0

Réponse apportée
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...

plus de 12 ans il y a | 0

Réponse apportée
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...

plus de 12 ans il y a | 1

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

plus de 12 ans il y a | 0

Réponse apportée
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.

plus de 12 ans il y a | 0

| A accepté

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

plus de 12 ans il y a | 0

Réponse apportée
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...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 12 ans il y a | 0

Réponse apportée
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! ...

plus de 12 ans il y a | 0

Réponse apportée
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...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
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) ...

plus de 12 ans il y a | 0

Réponse apportée
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...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
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

plus de 12 ans il y a | 0

Réponse apportée
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...

plus de 12 ans il y a | 0

Réponse apportée
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/...

plus de 12 ans il y a | 0

Question


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

plus de 12 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
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...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Interpolation in mat-lab
Hi! What kind of interpolation do you need? Try "interp1"!

plus de 12 ans il y a | 0

| A accepté

Charger plus