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

quasi 11 anni fa | 2

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

| accettato

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

| accettato

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

quasi 11 anni fa | 0

| accettato

Risposto
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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 1

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

| accettato

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

| accettato

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 1

| accettato

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

| accettato

Risposto
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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

Domanda


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

quasi 11 anni fa | 1 risposta | 0

1

risposta

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

quasi 11 anni fa | 0

| accettato

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

quasi 11 anni fa | 0

| accettato

Carica altro