Answered
Help with writing loop for multiple input files
for k=1:n file=sprintf('Z:\520\%d.raw',k) vol=read_raw8b(file) end

10 years ago | 1

| accepted

Answered
How to make matrix dimensions equal?
Maybe you want this %-----Example------------- x=rand(99,1000) win=rand(1000,1) %--------------------------- out=bsxf...

10 years ago | 0

Answered
Corresponding velocity magnitudes if x and y and Z are between specific range!
idx=0.011 <= data(:,1) & data(:,1)<= 0.015; idy=0.0034 <= data(:,2) & data(:,2) <= 0.0065; idz=-0.01 <= data(:,3) & data(:,3...

10 years ago | 0

Answered
Creating a matrix from vectors to have unique combinations
lat = (-25:0.1:-16) lon = (-76:0.1:-64) dep= [0:1:300] [x,y,z]=meshgrid(lat,lon,dep); out=[x(:) y(:) z(:)];

10 years ago | 0

| accepted

Answered
how to download 32 bit matlab? can you give the link to download matlab 2015b for 32 bit please?
<https://www.mathworks.com/downloads/web_downloads/download_release?release=R2015b>

10 years ago | 0

Answered
how do i select data from a column based on another column?
a=[1 2;3 4;5 0;5 1;1 0;7 8;4 0] out=a(a(:,2)==0,:)

10 years ago | 0

| accepted

Answered
How to save a file with a dialog box
[file,path]=uigetfile name=fullfile(path,file) % The file name with the path df='destination' % Your destination folder ...

10 years ago | 0

Answered
Is there an equivalent to table() in R in matlab?
<http://www.mathworks.com/help/matlab/tables.html>

10 years ago | 0

Answered
Subscript indices must either be real positive integers or logicals.
Check if abs is not used as a variable in your code. You can check by writing whos abs You can resolve the problem by ty...

10 years ago | 0

Answered
Subplot Titles Don't Appear
t=0:0.1:10; y=sin(t) figure subplot(1,2,1) hax1 = plot(t,y) title('Mean Value') subplot(1,2,2) hax2= plot(t,2*y) ...

10 years ago | 0

| accepted

Answered
How to extend a row vector so the result is a table?
a=[4 3 1 2] b=repmat(a,1200,1)

10 years ago | 1

| accepted

Answered
for loop for variables
It's not a good idea to create variables A1,A2, ..., An. The array A=1:10 contains all your data. Why to create 10 variables, wh...

10 years ago | 0

| accepted

Answered
How do I test if a matrix is unitary?
Your code is correct, but when the inverse is calculated, there maybe some errors (even if it's equal to 10^(-6)) caused by the ...

10 years ago | 1

Answered
Convert datetime to milliseconds
%-----Example------------------------ v1=datenum('01-01-2016','dd-mm-yyyy'); pas=1/(24*60*1000); v=v1+sort(randperm(50,5)...

10 years ago | 0

Answered
Extract numbers from column matrix
b=a(a>5)

10 years ago | 0

| accepted

Answered
How to make 30min intervals from 1min data taking the previous value for NaNs?
% -----------Example------------------------ v1=datenum('01-01-2016','dd-mm-yyyy'); pas=1/(24*60); v=datestr(v1:pas:v1+pa...

10 years ago | 1

| accepted

Answered
How to convert while loop into for loop in matlab?
Your while loop is not correct array=[2 4 3 1 7 8 ] ii=1 while ii<numel(array) if array(ii)<=5 array(ii)=[]...

10 years ago | 1

Answered
Simulink simulation output at Zero second doubt
I ran your model, and it shows the value 1 at 0 sec. Also, the output is always available, even when the output is equal to 0. Z...

10 years ago | 0

| accepted

Answered
obtain numbers from mixed cells
[num,str] = xlsread('fic.xlsx') out=regexp(str,'[\d\.]+','match') out=cellfun(@(x) str2double(x{:}),out)

10 years ago | 0

| accepted

Answered
how to get 1 to 500 odd numbers sum in matlab?
Use sum function

10 years ago | 2

Answered
STRCAT SYNTAX TO BE USED?
N=3 str='abc' out=repmat(str,1,N)

10 years ago | 0

| accepted

Answered
Undefined function or variable 'narnet'.
Check if you have a Neural Network Toolbox

10 years ago | 0

| accepted

Answered
putting 1's in the place of the highest numbers
*Edit* A = [2 3 1 4 7 2 1 3 0 0 3 4 2 1 1]; [~,ii]=max(A,[],2); B=zeros(size(A)); for k=1:size(A,1) a=A(k,:...

10 years ago | 0

| accepted

Answered
Global variable scope is not applied in try and catch
global Name; clear all; close all force; prompt = 'Enter Name'; Name = input(prompt) You declare Name as global, then ...

10 years ago | 0

| accepted

Answered
How can I make subplots image larger with mouse click ?
set(gcf,'resize','on')

10 years ago | 0

| accepted

Answered
How do you take the frequencies of the different peaks from the fft output
[ii,jj]=findpeaks(y,'MinPeakHeight',4000)

10 years ago | 0

Answered
How do i call function with three output arguments?
You omit to define N N=size(A,1) and your first for loop should begin at k=1 for i = 1: size(A,1)

10 years ago | 0

Answered
How can i plot the response of function as a vector ?
What this line is doing? |xdot=equacte(t,x)| just write [t,x]=ode45(@equacte,[0:0.0004:1],[0,0,0]); plot(t,x(:,1),'O',t,x...

10 years ago | 0

| accepted

Answered
How to count no. of time state occur in sequence and then divide by sequence no.?
v=[1,3,3,1,2,1,4,2,3,1,4,2,4,4,4,3,1,2,5,1] out=prod(nonzeros(accumarray(v',1))/20)

10 years ago | 0

Load more